Commit 7c0bd29f by Berbe Committed by GitHub

Fix: bps & Bps default scale remains decimal (backwards-compatibility) (#27838)

parent c6502afa
......@@ -151,10 +151,10 @@ export const getCategories = (): ValueFormatCategory[] => [
name: 'Data rate',
formats: [
{ name: 'packets/sec', id: 'pps', fn: SIPrefix('p/s') },
{ name: 'bytes/sec(IEC)', id: 'Bps', fn: binaryPrefix('B/s') },
{ name: 'bytes/sec(SI)', id: 'decBps', fn: SIPrefix('B/s') },
{ name: 'bits/sec(IEC)', id: 'bps', fn: binaryPrefix('b/s') },
{ name: 'bits/sec(SI)', id: 'decbps', fn: SIPrefix('b/s') },
{ name: 'bytes/sec(IEC)', id: 'binBps', fn: binaryPrefix('B/s') },
{ name: 'bytes/sec(SI)', id: 'Bps', fn: SIPrefix('B/s') },
{ name: 'bits/sec(IEC)', id: 'binbps', fn: binaryPrefix('b/s') },
{ name: 'bits/sec(SI)', id: 'bps', fn: SIPrefix('b/s') },
{ name: 'kibibytes/sec', id: 'KiBs', fn: binaryPrefix('B/s', 1) },
{ name: 'kibibits/sec', id: 'Kibits', fn: binaryPrefix('b/s', 1) },
{ name: 'kilobytes/sec', id: 'KBs', fn: SIPrefix('B/s', 1) },
......
......@@ -33,7 +33,7 @@ describe('when rendering table', () => {
{ text: 'Colored' },
{ text: 'Undefined' },
{ text: 'String' },
{ text: 'United', unit: 'decbps' },
{ text: 'United', unit: 'bps' },
{ text: 'Sanitized' },
{ text: 'Link' },
{ text: 'Array' },
......
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