Skip to content

Commit

Permalink
fix: Use binary units in pod view (argoproj#7649) (argoproj#7726)
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Chong <[email protected]>
  • Loading branch information
keithchong authored Nov 17, 2021
1 parent 0c91f65 commit 27928d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ const labelForSortMode = {
topLevelResource: 'Top Level Resource'
};

const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
const sizes = ['Bytes', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi', 'Yi'];
function formatSize(bytes: number) {
if (!bytes) {
return '0 Bytes';
Expand Down

0 comments on commit 27928d0

Please sign in to comment.