summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-09-10 22:47:42 -0400
committerAllan McRae <allan@archlinux.org>2011-09-11 13:46:07 +1000
commit7f1235ccbc3a81a4f8a50de96cea512353d6773e (patch)
treed8ec9494ddb14209000d605142dc47122f296f14
parent4737a87b84742e6d704e1a59792aed9427cbf620 (diff)
paccache: escape . in trimming of diskspace string
Before: ==> finished dry run: 2 candidates (diskspace saved: 7. MiB) After: ==> finished dry run: 2 candidates (diskspace saved: 7.8 MiB) Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xcontrib/paccache.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/paccache.in b/contrib/paccache.in
index b191ed9a..8a8cad4b 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -121,7 +121,7 @@ size_to_human() {
}
sizestr = sprintf("%.2f", size)
- sub(/.?0+$/, "", sizestr)
+ sub(/\.?0+$/, "", sizestr)
printf("%s %s", sizestr, suffix[count])
}'
}