summaryrefslogtreecommitdiffstats
path: root/tests/tier.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tier.rc')
-rw-r--r--tests/tier.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tier.rc b/tests/tier.rc
index 4fd24de0659..32ee00cf4fe 100644
--- a/tests/tier.rc
+++ b/tests/tier.rc
@@ -109,6 +109,7 @@ function sleep_first_cycle {
function sleep_until_mid_cycle {
startTime=$(date +%s)
mod=$(( ( $startTime % $1 ) + 1 ))
+ mod=$(( $1 - $mod ))
mod=$(( $mod + $1 / 2 ))
sleep $mod
}