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
|
|
@ -54,6 +54,8 @@
|
||||||
http://www.webgui.org/bugs/tracker/deactivated-users-subscriptions
|
http://www.webgui.org/bugs/tracker/deactivated-users-subscriptions
|
||||||
- fix: Matrix: filling out no fields leads to unapprovable listing (perlDreamer Consulting, LLC)
|
- 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
|
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
|
7.3.19
|
||||||
- Fixed a formatting problem in the workflow editor screen.
|
- Fixed a formatting problem in the workflow editor screen.
|
||||||
|
|
|
||||||
|
|
@ -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.
|
# 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) {
|
unless ($totalSize < 1) {
|
||||||
$totalSize = sprintf("%d", $totalSize);
|
$totalSize = sprintf("%.0f", $totalSize);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$totalSize = sprintf("%.2f", $totalSize);
|
$totalSize = sprintf("%.2f", $totalSize);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue