Skip to content

Commit

Permalink
airtime.sh bugfix in total avg
Browse files Browse the repository at this point in the history
  • Loading branch information
viisauksena committed Jun 26, 2016
1 parent fc8c192 commit 17a7220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/lib/gluon/airtime/airtime.sh
Expand Up @@ -25,7 +25,7 @@ echo $(( $busy - $(cat /tmp/2gbuslast|tail -n1) )) > /tmp/xtra/2gbus

# calc24h avg max min
sumtotal=0
date +%M |grep [0-5]0 && for line in $(cat /tmp/xtra/2gtx24h); do let sumtotal+=$line; done
date +%M |grep [0-5]0 && for line in $(cat /tmp/xtra/2gtotal24h); do let sumtotal+=$line; done
date +%M |grep [0-5]0 && echo $(( $sumtotal / $(cat /tmp/xtra/2gtotal24h|wc -l) )) > /tmp/xtra/2gtotal24havg
cat /tmp/xtra/2gtotal24h|sort -n |head -n1 > /tmp/xtra/2gtotal24hmin
cat /tmp/xtra/2gtotal24h|sort -n |tail -n1 > /tmp/xtra/2gtotal24hmax
Expand Down

0 comments on commit 17a7220

Please sign in to comment.