Add detail to the rate command

This commit is contained in:
Robert Miles 2019-08-17 05:05:10 +00:00
parent 18db85ab5d
commit 67dac548a6
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ start_date="2018-11-20 20:41:31"
days=$(printf "%s" "$(( ($(date +%s) - $(date -d "$start_date" +%s)) / 86400 ))")
listings=$(wc -l < /var/gopher/listing.gophermap)
calc=$(printf "%s %s" "$listings" "$days" | awk '{ printf "%0.2f", $1 / $2 }')
printf "QEC receiving %s logs per day\\n" "$calc"
printf "QEC receiving %s logs per day (%s logs in %s days)\\n" "$calc" "$listings" "$days"