diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index 58209ceea97..fe7c4ebf449 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2026-02-26] - v1.159.1 + + +### Fixed: + +- Throughput quota resource metric formatting ([#13427](https://github.com/linode/manager/pull/13427)) + ## [2026-02-25] - v1.159.0 diff --git a/packages/manager/package.json b/packages/manager/package.json index af5d2a71767..085511e5975 100644 --- a/packages/manager/package.json +++ b/packages/manager/package.json @@ -2,7 +2,7 @@ "name": "linode-manager", "author": "Linode", "description": "The Linode Manager website", - "version": "1.159.0", + "version": "1.159.1", "private": true, "type": "module", "bugs": { diff --git a/packages/manager/src/features/Account/Quotas/utils.ts b/packages/manager/src/features/Account/Quotas/utils.ts index ba5ff4cafcf..ad5ec6b0f13 100644 --- a/packages/manager/src/features/Account/Quotas/utils.ts +++ b/packages/manager/src/features/Account/Quotas/utils.ts @@ -251,7 +251,6 @@ export const convertResourceMetric = ({ convertedResourceMetric: 'Gbps', convertedLimit: readableBytes(initialLimit, { unit: 'GB', - round: 0, base10: true, }).value, }; @@ -272,6 +271,10 @@ export const convertResourceMetric = ({ * Note: the value should be the raw values in bytes, not an existing conversion */ export const pluralizeMetric = (value: number, unit: string) => { + if (unit === 'byte_per_second') { + return unit; + } + if (unit !== 'byte') { return value > 1 ? `${unit}s` : unit; }