Commit 70038bfd by mueslo Committed by GitHub

Fix byte-format data rates (#25424)

parent 293ecbdd
...@@ -149,16 +149,16 @@ export const getCategories = (): ValueFormatCategory[] => [ ...@@ -149,16 +149,16 @@ export const getCategories = (): ValueFormatCategory[] => [
formats: [ formats: [
{ name: 'packets/sec', id: 'pps', fn: decimalSIPrefix('pps') }, { name: 'packets/sec', id: 'pps', fn: decimalSIPrefix('pps') },
{ name: 'bits/sec', id: 'bps', fn: decimalSIPrefix('bps') }, { name: 'bits/sec', id: 'bps', fn: decimalSIPrefix('bps') },
{ name: 'bytes/sec', id: 'Bps', fn: decimalSIPrefix('Bs') }, { name: 'bytes/sec', id: 'Bps', fn: decimalSIPrefix('B/s') },
{ name: 'kilobytes/sec', id: 'KBs', fn: decimalSIPrefix('Bs', 1) }, { name: 'kilobytes/sec', id: 'KBs', fn: decimalSIPrefix('B/s', 1) },
{ name: 'kilobits/sec', id: 'Kbits', fn: decimalSIPrefix('bps', 1) }, { name: 'kilobits/sec', id: 'Kbits', fn: decimalSIPrefix('bps', 1) },
{ name: 'megabytes/sec', id: 'MBs', fn: decimalSIPrefix('Bs', 2) }, { name: 'megabytes/sec', id: 'MBs', fn: decimalSIPrefix('B/s', 2) },
{ name: 'megabits/sec', id: 'Mbits', fn: decimalSIPrefix('bps', 2) }, { name: 'megabits/sec', id: 'Mbits', fn: decimalSIPrefix('bps', 2) },
{ name: 'gigabytes/sec', id: 'GBs', fn: decimalSIPrefix('Bs', 3) }, { name: 'gigabytes/sec', id: 'GBs', fn: decimalSIPrefix('B/s', 3) },
{ name: 'gigabits/sec', id: 'Gbits', fn: decimalSIPrefix('bps', 3) }, { name: 'gigabits/sec', id: 'Gbits', fn: decimalSIPrefix('bps', 3) },
{ name: 'terabytes/sec', id: 'TBs', fn: decimalSIPrefix('Bs', 4) }, { name: 'terabytes/sec', id: 'TBs', fn: decimalSIPrefix('B/s', 4) },
{ name: 'terabits/sec', id: 'Tbits', fn: decimalSIPrefix('bps', 4) }, { name: 'terabits/sec', id: 'Tbits', fn: decimalSIPrefix('bps', 4) },
{ name: 'petabytes/sec', id: 'PBs', fn: decimalSIPrefix('Bs', 5) }, { name: 'petabytes/sec', id: 'PBs', fn: decimalSIPrefix('B/s', 5) },
{ name: 'petabits/sec', id: 'Pbits', fn: decimalSIPrefix('bps', 5) }, { name: 'petabits/sec', id: 'Pbits', fn: decimalSIPrefix('bps', 5) },
], ],
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment