summaryrefslogtreecommitdiffstats
path: root/tests/tier.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tier.rc')
-rw-r--r--tests/tier.rc10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/tier.rc b/tests/tier.rc
index 19234c521a0..dd220fe09d2 100644
--- a/tests/tier.rc
+++ b/tests/tier.rc
@@ -114,13 +114,17 @@ function sleep_until_mid_cycle {
sleep $mod
}
-function tier_deamon_check () {
+function tier_daemon_check () {
pgrep -f "rebalance/$V0"
echo "$?"
}
function rebalance_run_time () {
local time=$($CLI volume rebalance $1 status | awk '{print $9}' | sed -n 3p);
- time=$(printf "%.0f\n" "$time");
- echo $time
+ local hh=$(echo $time | cut -d ':' -f1);
+ local mm=$(echo $time | cut -d ':' -f2);
+ local ss=$(echo $time | cut -d ':' -f3);
+ local total=$(($hh * 3600 + $mm * 60 + $ss));
+
+ echo $total;
}