Permalink
Browse files

modified: rsnapshot/rsnapshot-wrapper.sh

	hourly stats

	Signed-off-by: Christian Kujau <lists@nerdbynature.de>
  • Loading branch information...
1 parent a4f4b28 commit 494058413e6e142a76ce85c8388fc62f90c0e85f @ckujau committed Jul 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rsnapshot/rsnapshot-wrapper.sh
@@ -204,7 +204,7 @@ case $1 in
stats)
# Not Y3K safe :-)
- for h in `awk '/^2[0-9].*\((daily|weekly|monthly)\) finished/ {print $5}' "$LOG" | sort -u`; do
+ for h in `awk '/^2[0-9].*\((hourly|daily|weekly|monthly)\) finished/ {print $5}' "$LOG" | sort -u`; do
printf "Host $h took an average of "
egrep "${h}.*finished" "$LOG" | awk '{sum+=$9} END {print sum/NR " minutes to complete."}'
done

0 comments on commit 4940584

Please sign in to comment.