Dashboards: Fix 'days' unit pluralization (#93326)

pull/93457/head
kay delaney 8 months ago committed by GitHub
parent eb3f64b3f8
commit 98a4d2858a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-data/src/valueFormats/dateTimeFormatters.ts

@ -185,7 +185,7 @@ export function toDays(size: number, decimals?: DecimalCount): FormattedValue {
}
if (Math.abs(size) < 7) {
return { text: toFixed(size, decimals), suffix: ' day' };
return toFixedScaled(size, decimals, ' day');
} else if (Math.abs(size) < 365) {
return toFixedScaled(size / 7, decimals, ' week');
} else {

Loading…
Cancel
Save