Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
size.sh: Calculate MiB correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeckmann committed Jan 13, 2021
1 parent ea53a9c commit 3e0a92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function print_usage {
usage=$(get_section_length $symbol)
length=$(get_symbol $length_symbol)
free=$(( $length - $usage ))
freehr=$(printf "%.3f" "$(( $free ))e-6")
freehr=$(printf "%.3f" "$(( ($free * 1000000) / 1024 / 1024 ))e-6")
echo -e "$symbol\t$usage / $length\t($free bytes free ($freehr MB))"
}

Expand Down

0 comments on commit 3e0a92c

Please sign in to comment.