aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-17 21:10:38 -0500
committerDave Reisner <d@falconindy.com>2010-01-17 21:10:38 -0500
commit12bd9ee22b0703d8b641b0761fcd40d9d7595cb9 (patch)
tree7e9d72bf361b9104f0881e80c1c6d6a2a7e8e99d /squashfu
parent197efd1d8ba48acc3e12f2669073c3693bf634ee (diff)
downloadsquashfu-12bd9ee22b0703d8b641b0761fcd40d9d7595cb9.tar.gz
Fix incorrect value displaying for seed size
Diffstat (limited to 'squashfu')
-rwxr-xr-xsquashfu6
1 files changed, 4 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index 49e62e8..fad434c 100755
--- a/squashfu
+++ b/squashfu
@@ -319,13 +319,15 @@ action_report () {
printf "%10s\t%25s\t%7s\n" "Bin ID" "Date Created" "Size"
grep -vE "^[\t ]*$" "$BINVENTORY" | sort -r -t: -k2 -n | while read bin stamp; do
- printf "%10d\t%25s\t%7s\n" "$bin" "$(date --rfc-3339=seconds --date="1970-01-01 $stamp sec GMT")" "${DATA[$bin]}"
+ printf "%10d\t%25s\t%7s\n" "$bin" \
+ "$(date --rfc-3339=seconds --date="1970-01-01 $stamp sec GMT")" \
+ "${DATA[$bin]}"
done
IFS=$OLDIFS
printf "%10s\t%25s\t%7s\n" "" "Incremental Total" "${DATA[0]}"
# Print totals (not efficient -- reruns du on things we already ran it on)
- printf "\n%10s\t%25s\t%7s\n" "" "$(basename $SEED)" "${DATA[0]}"
+ printf "\n%10s\t%25s\t%7s\n" "" "$(basename $SEED)" "$(du -h "${SEED}" | awk '{print $1}')"
printf "\n%10s\t%25s\t%7s\n" "" "Grand Total" \
"$(du -csh "$BINS_DIR" "$SEED" 2>/dev/null | grep -E "total$" | awk '{print $1}')"
}