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:
Colin Kuskie 2007-06-29 17:08:18 +00:00
parent fa1499cf06
commit c6577851d0
2 changed files with 3 additions and 1 deletions

View file

@ -54,6 +54,8 @@
http://www.webgui.org/bugs/tracker/deactivated-users-subscriptions
- fix: Matrix: filling out no fields leads to unapprovable listing (perlDreamer Consulting, LLC)
http://www.webgui.org/bugs/tracker/matrix-filling-out-no-fields-leads-to-unapprovable-listing
- fix: DiskUsage will return -1 if value too large (perlDreamer Consulting, LLC)
http://www.webgui.org/bugs/tracker/diskusage-will-return--1-if-value-too-large
7.3.19
- Fixed a formatting problem in the workflow editor screen.

View file

@ -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);