summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-xlsinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 9567b79..f54fa25 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -139,7 +139,7 @@ analyze_image() {
zsize=$(stat -c %s "$_image")
# calculate compression ratio
- TIMEFORMAT=%R decomptime=$({ time decomp "$_image" >/dev/null; } 2>&1)
+ decomptime=$(TIMEFORMAT=%R; { time decomp "$_image" >/dev/null; } 2>&1)
if [[ $_compress ]]; then
fullsize=$(decomp "$_image" | wc -c)
ratio=.$(( zsize * 1000 / fullsize % 1000 ))