SystemStats: no space before unit (to match the others stats)
This commit is contained in:
parent
92b37df962
commit
7ba3870c82
1 changed files with 4 additions and 4 deletions
|
|
@ -20,13 +20,13 @@ Singleton {
|
|||
// Helper function to format network speeds
|
||||
function formatSpeed(bytesPerSecond) {
|
||||
if (bytesPerSecond < 1024) {
|
||||
return bytesPerSecond.toFixed(0) + " B/s"
|
||||
return bytesPerSecond.toFixed(0) + "B/s"
|
||||
} else if (bytesPerSecond < 1024 * 1024) {
|
||||
return (bytesPerSecond / 1024).toFixed(1) + " KB/s"
|
||||
return (bytesPerSecond / 1024).toFixed(1) + "KB/s"
|
||||
} else if (bytesPerSecond < 1024 * 1024 * 1024) {
|
||||
return (bytesPerSecond / (1024 * 1024)).toFixed(1) + " MB/s"
|
||||
return (bytesPerSecond / (1024 * 1024)).toFixed(1) + "MB/s"
|
||||
} else {
|
||||
return (bytesPerSecond / (1024 * 1024 * 1024)).toFixed(1) + " GB/s"
|
||||
return (bytesPerSecond / (1024 * 1024 * 1024)).toFixed(1) + "GB/s"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue