slitaz-dev-tools diff mirror-tools/rootfs/usr/share/rrd/makegraphs @ rev 309
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 08:23:49 2019 +0100 (2019-02-26) |
parents | e0a09d90b2cb |
children | 3a966a7b4ac9 |
line diff
1.1 --- a/mirror-tools/rootfs/usr/share/rrd/makegraphs Thu Feb 24 01:59:21 2011 +0000 1.2 +++ b/mirror-tools/rootfs/usr/share/rrd/makegraphs Tue Feb 26 08:23:49 2019 +0100 1.3 @@ -144,7 +144,7 @@ 1.4 1.5 updatediskgraph() { 1.6 period=$1 1.7 - [ "$period" == "day" ] && maxdisk="$(getmax disk)" 1.8 + [ "$period" = "day" ] && maxdisk="$(getmax disk)" 1.9 info="" 1.10 [ -r $2 ] && 1.11 info="[ $(fdisk -l | grep "^Disk $2:" | \ 1.12 @@ -198,7 +198,7 @@ 1.13 updateifgraph() { 1.14 interface=$1 1.15 period=$2 1.16 - [ "$period" == "day" ] && maxif="$(getmax $interface)" 1.17 + [ "$period" = "day" ] && maxif="$(getmax $interface)" 1.18 rrdtool graph "$rrdgraph/$interface-$period.png" --start -1$period \ 1.19 $rrdgraphargs -t "traffic on $interface graph per $period" \ 1.20 --logarithmic -A -v "Bytes/second" --units=si \ 1.21 @@ -260,7 +260,7 @@ 1.22 local i 1.23 d=$(stat -c %D $1) 1.24 for i in /dev/* ; do 1.25 - [ $(stat -c "%02t%02T" $i) == $d ] || continue 1.26 + [ $(stat -c "%02t%02T" $i) = $d ] || continue 1.27 echo $i 1.28 break 1.29 done