diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-17 21:10:38 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-17 21:10:38 -0500 |
commit | 12bd9ee22b0703d8b641b0761fcd40d9d7595cb9 (patch) | |
tree | 7e9d72bf361b9104f0881e80c1c6d6a2a7e8e99d | |
parent | 197efd1d8ba48acc3e12f2669073c3693bf634ee (diff) | |
download | squashfu-12bd9ee22b0703d8b641b0761fcd40d9d7595cb9.tar.gz |
Fix incorrect value displaying for seed size
-rwxr-xr-x | squashfu | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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}')" } |