Forward port of diskUsage display bug. %d uses the native integer, which
overflows on 2**32 on summaries. Changed it to use %.0f instead.
This commit is contained in:
parent
fa1499cf06
commit
c6577851d0
2 changed files with 3 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ sub du {
|
|||
|
||||
# Format to a whole number unless the total is less than 1. If it's less than 1 attempt to display 2 digits of precision to avoid displaying a zero size.
|
||||
unless ($totalSize < 1) {
|
||||
$totalSize = sprintf("%d", $totalSize);
|
||||
$totalSize = sprintf("%.0f", $totalSize);
|
||||
}
|
||||
else {
|
||||
$totalSize = sprintf("%.2f", $totalSize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue