forked from cosmic/cosmic
Add detail to the rate command
This commit is contained in:
parent
18db85ab5d
commit
67dac548a6
2
bin/rate
2
bin/rate
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue