mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
Adjust formatting of speeds
This commit is contained in:
@@ -81,7 +81,7 @@ const format = {
|
||||
unit = 'B';
|
||||
} else if ((bytes >= kilobyte) && (bytes < megabyte)) {
|
||||
value = (bytes / kilobyte).toFixed(precision);
|
||||
unit = 'kB';
|
||||
unit = 'KB';
|
||||
} else if ((bytes >= megabyte) && (bytes < gigabyte)) {
|
||||
value = (bytes / megabyte).toFixed(precision);
|
||||
unit = 'MB';
|
||||
|
||||
Reference in New Issue
Block a user