From ea80bec1b7a4bb38481eee36d5e1f95edc95ee68 Mon Sep 17 00:00:00 2001 From: "eugen.betke" Date: Tue, 30 Oct 2018 20:07:35 +0100 Subject: [PATCH] Better variable name --- benchmark/drop_caches.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark/drop_caches.sh b/benchmark/drop_caches.sh index 10da129e6..4b472eb84 100755 --- a/benchmark/drop_caches.sh +++ b/benchmark/drop_caches.sh @@ -7,11 +7,11 @@ while [ ! 0 -eq ${#oscs[@]} ]; do echo 3 > /proc/sys/vm/drop_caches for i in ${!oscs[@]}; do - fillstat=$( grep -h used_mb ${oscs[$i]}/osc_cached_mb | cut -d" " -f 2 ) - if [ 0 == $fillstat ]; then + used_mb=$( grep -h used_mb ${oscs[$i]}/osc_cached_mb | cut -d" " -f 2 ) + if [ 0 == $used_mb ]; then unset oscs[$i] else - echo "skip ${oscs[$i]} $fillstat" + echo "skip ${oscs[$i]} $used_mb" fi done sleep 1