diff --git a/main/http_server/axe-os/src/app/pipes/hash-suffix.pipe.ts b/main/http_server/axe-os/src/app/pipes/hash-suffix.pipe.ts index f6a57cf6..28b83f1d 100644 --- a/main/http_server/axe-os/src/app/pipes/hash-suffix.pipe.ts +++ b/main/http_server/axe-os/src/app/pipes/hash-suffix.pipe.ts @@ -26,6 +26,10 @@ export class HashSuffixPipe implements PipeTransform { const scaledValue = value / Math.pow(1000, power); const suffix = suffixes[power]; + if (scaledValue < 10) { + return scaledValue.toFixed(2) + suffix; + } + return scaledValue.toFixed(1) + suffix; }