Browse Source

Added byte unit scaling (#4707)

AndCycle 6 years ago
parent
commit
a64bd98de6
1 changed files with 7 additions and 0 deletions
  1. 7 0
      web/gui/dashboard.js

+ 7 - 0
web/gui/dashboard.js

@@ -805,6 +805,13 @@ NETDATA.unitsConversion = {
             'GB/s': 1024 * 1024,
             'TB/s': 1024 * 1024 * 1024
         },
+        'B': {
+            'B': 1,
+            'KB': 1024,
+            'MB': 1024 * 1024,
+            'GB': 1024 * 1024 * 1024,
+            'TB': 1024 * 1024 * 1024 * 1024,
+            'PB': 1024 * 1024 * 1024 * 1024 * 1024
         'KB': {
             'B': 1 / 1024,
             'KB': 1,