From a1283212ed175bc02b9ccf67429b695562e1ba74 Mon Sep 17 00:00:00 2001 From: Mengyang Li Date: Sat, 23 Sep 2017 21:05:43 -0700 Subject: [PATCH] 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. --- public/app/core/utils/kbn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/core/utils/kbn.js b/public/app/core/utils/kbn.js index 38498ff1462..ea36ac61f14 100644 --- a/public/app/core/utils/kbn.js +++ b/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'},