From 4fe7997094b1cfd19b0c2d90aad7be827e3acc75 Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Wed, 21 Jul 2010 13:56:19 -0500 Subject: cap hackbench backoff time at 60 seconds detect when out-of-memory sleep time exceeds 60 seconds and cap it at that value. Signed-off-by: Clark Williams --- rteval/hackbench.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rteval') diff --git a/rteval/hackbench.py b/rteval/hackbench.py index ed8fac4..7ef548b 100644 --- a/rteval/hackbench.py +++ b/rteval/hackbench.py @@ -102,6 +102,8 @@ class Hackbench(load.Load): time.sleep(self.err_sleep) if self.err_sleep < 60.0: self.err_sleep *= 2.0 + if self.err_sleep > 60.0: + self.err_sleep = 60.0 self.debug("stopping") if p.poll() == None: -- cgit