Skip to content

Commit

Permalink
fix: different measurements look confusing (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
astandrik authored Oct 1, 2024
1 parent 446019f commit 5f26767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function bytesToMB(bytes?: number | string) {
}

export function bytesToSpeed(bytes?: number | string) {
return `${bytesToMB(bytes)}${bytes ? 'ps' : ''}`;
const speed = bytesToMB(bytes);
return `${speed}${speed ? 'ps' : ''}`;
}

export function bytesToGB(bytes?: number | string, shouldRound?: boolean) {
Expand Down

0 comments on commit 5f26767

Please sign in to comment.