From 7f1235ccbc3a81a4f8a50de96cea512353d6773e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 10 Sep 2011 22:47:42 -0400 Subject: 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 --- contrib/paccache.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/paccache.in') 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]) }' } -- cgit v1.2.3