2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Avoid bashism

This commit is contained in:
asgh 2014-09-28 21:03:15 -04:00
parent 56573f4600
commit 2b3c17b977

View File

@ -198,7 +198,7 @@ case $name in
totalMemGpu=`echo "$totalMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
usedMemGpu=`echo "$usedMemGpus" | sed -n $(( $nGpusCounter + 1 ))p`
percentMemUsed=$(( $usedMemGpu * 100 / $totalMemGpu ))
valueGpus="${valueGpus}${percentMemUsed}"$'\n'
valueGpus="${valueGpus}${percentMemUsed}"$(printf '\n')
: $(( nGpusCounter = $nGpusCounter + 1 ))
done
;;