Better variable name
This commit is contained in:
parent
1542fead95
commit
ea80bec1b7
|
@ -7,11 +7,11 @@ while [ ! 0 -eq ${#oscs[@]} ]; do
|
||||||
echo 3 > /proc/sys/vm/drop_caches
|
echo 3 > /proc/sys/vm/drop_caches
|
||||||
|
|
||||||
for i in ${!oscs[@]}; do
|
for i in ${!oscs[@]}; do
|
||||||
fillstat=$( grep -h used_mb ${oscs[$i]}/osc_cached_mb | cut -d" " -f 2 )
|
used_mb=$( grep -h used_mb ${oscs[$i]}/osc_cached_mb | cut -d" " -f 2 )
|
||||||
if [ 0 == $fillstat ]; then
|
if [ 0 == $used_mb ]; then
|
||||||
unset oscs[$i]
|
unset oscs[$i]
|
||||||
else
|
else
|
||||||
echo "skip ${oscs[$i]} $fillstat"
|
echo "skip ${oscs[$i]} $used_mb"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in New Issue