From 911a91308f881f61b87a7e6313448970ff76872e Mon Sep 17 00:00:00 2001 From: flopp999 <21694965+flopp999@users.noreply.github.com> Date: Mon, 30 Mar 2020 20:47:13 +0200 Subject: [PATCH] Units: add (IEC) and (Metric) (#23175) since only bits and bytes is displayed when it is selected, I added (IEC) and (Metric) Co-authored-by: Arve Knudsen --- packages/grafana-data/src/valueFormats/categories.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/grafana-data/src/valueFormats/categories.ts b/packages/grafana-data/src/valueFormats/categories.ts index 9892153a438..816aa4bf9cf 100644 --- a/packages/grafana-data/src/valueFormats/categories.ts +++ b/packages/grafana-data/src/valueFormats/categories.ts @@ -123,8 +123,8 @@ export const getCategories = (): ValueFormatCategory[] => [ { name: 'Data (IEC)', formats: [ - { name: 'bits', id: 'bits', fn: binarySIPrefix('b') }, - { name: 'bytes', id: 'bytes', fn: binarySIPrefix('B') }, + { name: 'bits(IEC)', id: 'bits', fn: binarySIPrefix('b') }, + { name: 'bytes(IEC)', id: 'bytes', fn: binarySIPrefix('B') }, { name: 'kibibytes', id: 'kbytes', fn: binarySIPrefix('B', 1) }, { name: 'mebibytes', id: 'mbytes', fn: binarySIPrefix('B', 2) }, { name: 'gibibytes', id: 'gbytes', fn: binarySIPrefix('B', 3) }, @@ -135,8 +135,8 @@ export const getCategories = (): ValueFormatCategory[] => [ { name: 'Data (Metric)', formats: [ - { name: 'bits', id: 'decbits', fn: decimalSIPrefix('b') }, - { name: 'bytes', id: 'decbytes', fn: decimalSIPrefix('B') }, + { name: 'bits(Metric)', id: 'decbits', fn: decimalSIPrefix('b') }, + { name: 'bytes(Metric)', id: 'decbytes', fn: decimalSIPrefix('B') }, { name: 'kilobytes', id: 'deckbytes', fn: decimalSIPrefix('B', 1) }, { name: 'megabytes', id: 'decmbytes', fn: decimalSIPrefix('B', 2) }, { name: 'gigabytes', id: 'decgbytes', fn: decimalSIPrefix('B', 3) },