[pacman-dev] [PATCH] paccache: escape . in trimming of diskspace string
11 Sep
2011
11 Sep
'11
2:47 a.m.
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> --- contrib/paccache.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/paccache.in b/contrib/paccache.in index b191ed9..8a8cad4 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]) }' } -- 1.7.6.1
4808
Age (days ago)
4808
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dave Reisner