diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-05-13 21:35:16 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-05-18 19:09:37 +0200 |
commit | 013fe608a00be5c56d9dc9696c5cf8542d0c5736 (patch) | |
tree | bb7a64eb41d596c592d383a8e6e88108c144a48e | |
parent | 1007ca6065131eb2770e9a08fac3b19c14527140 (diff) | |
download | mkinitcpio-013fe608a00be5c56d9dc9696c5cf8542d0c5736.tar.gz mkinitcpio-013fe608a00be5c56d9dc9696c5cf8542d0c5736.tar.xz |
lsinitcpio: Always show extraction time
Even for uncompressed images, estimate the work being done to extract to
ramfs.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | lsinitcpio | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -135,8 +135,8 @@ if (( analyze )); then zsize=$(stat -c %s "$image") # calculate compression ratio + TIMEFORMAT=%R decomptime=$({ time decomp "$image" >/dev/null; } 2>&1 ) if [[ $compress ]]; then - TIMEFORMAT=%R decomptime=$({ time decomp "$image" >/dev/null; } 2>&1 ) fullsize=$(decomp "$image" | bsdtar xOf - | wc -c) ratio=.$(( zsize * 1000 / fullsize % 1000 )) fi @@ -181,8 +181,8 @@ if (( analyze )); then if [[ $compress ]]; then msg 'Compressed with: %s' "$compress" msg2 'Uncompressed size: %s (%s ratio)' "$(size_to_human "$fullsize")" "$ratio" - msg2 'Estimated decompression time: %ss' "$decomptime" fi + msg2 'Estimated extraction time: %ss' "$decomptime" printf '\n' if (( ${#modules[*]} )); then |