summaryrefslogtreecommitdiffstats
path: root/rteval
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-07-21 13:56:19 -0500
committerClark Williams <williams@redhat.com>2010-07-21 13:56:19 -0500
commit4fe7997094b1cfd19b0c2d90aad7be827e3acc75 (patch)
tree626903d04db8c0b2ddfc6cd6f410906cc5c0cdbc /rteval
parent2a7d353193503cbd9f5f5ef5f2a621483990dc97 (diff)
downloadrteval-4fe7997094b1cfd19b0c2d90aad7be827e3acc75.tar.gz
rteval-4fe7997094b1cfd19b0c2d90aad7be827e3acc75.tar.xz
rteval-4fe7997094b1cfd19b0c2d90aad7be827e3acc75.zip
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 <williams@redhat.com>
Diffstat (limited to 'rteval')
-rw-r--r--rteval/hackbench.py2
1 files changed, 2 insertions, 0 deletions
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: