Просмотр исходного кода

Use B/s instead Bps for Bytes per second

Most places are using bps and B/s for bits and bytes,
ref: https://en.wikipedia.org/wiki/Data_rate_units
Bps (Bytes per second) isn't a really common used unit the in the wild.
Mengyang Li 8 лет назад
Родитель
Сommit
a1283212ed
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      public/app/core/utils/kbn.js

+ 2 - 2
public/app/core/utils/kbn.js

@@ -419,7 +419,7 @@ function($, _, moment) {
   // Data Rate
   kbn.valueFormats.pps    = kbn.formatBuilders.decimalSIPrefix('pps');
   kbn.valueFormats.bps    = kbn.formatBuilders.decimalSIPrefix('bps');
-  kbn.valueFormats.Bps    = kbn.formatBuilders.decimalSIPrefix('Bps');
+  kbn.valueFormats.Bps    = kbn.formatBuilders.decimalSIPrefix('B/s');
   kbn.valueFormats.KBs    = kbn.formatBuilders.decimalSIPrefix('Bs', 1);
   kbn.valueFormats.Kbits  = kbn.formatBuilders.decimalSIPrefix('bps', 1);
   kbn.valueFormats.MBs    = kbn.formatBuilders.decimalSIPrefix('Bs', 2);
@@ -804,7 +804,7 @@ function($, _, moment) {
         submenu: [
           {text: 'packets/sec', value: 'pps'},
           {text: 'bits/sec',    value: 'bps'},
-          {text: 'bytes/sec',   value: 'Bps'},
+          {text: 'bytes/sec',   value: 'B/s'},
           {text: 'kilobits/sec', value: 'Kbits'},
           {text: 'kilobytes/sec',    value: 'KBs'},
           {text: 'megabits/sec', value: 'Mbits'},