Update 'Bash/OpenWrt/band.bash'
computed max daily was having $md being interpreted as octal when the number started with a leading 0. Thanks bash. Found a fix though, thanks internet.
This commit is contained in:
parent
9a19c25dff
commit
58dded8116
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
mtotal=1000 # monthly total in GB for high end cut off
|
||||
dmax=40 # daily max usage value
|
||||
md=`date +%d` # day of the month numerically
|
||||
cmd=$(($dmax * $md)) # computed max daily
|
||||
cmd=$((${dmax#0} * ${md#0})) # computed max daily also the cause of my mystery should be fixed now
|
||||
wif="wan"
|
||||
|
||||
# now vnstat stuff, some of this is specific to openwrt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue