summaryrefslogtreecommitdiff
diff options
authorRod Smith <rod.smith@canonical.com>2018-12-21 09:30:10 -0500
committerRod Smith <rod.smith@canonical.com>2018-12-21 09:30:10 -0500
commitcc59c96e0034014251296d6210b59353ed09b61d (patch)
tree337d504a2ddd8063f97670ca2d6ebea639c0720a
parentf60cac039edfb1337857878a96b5f9dd4450bc94 (diff)
Increase timeout in memory_stress_ng from 150% to 200% of expected run time
-rwxr-xr-xbin/memory_stress_ng2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/memory_stress_ng b/bin/memory_stress_ng
index 181404a..450a319 100755
--- a/bin/memory_stress_ng
+++ b/bin/memory_stress_ng
@@ -72,7 +72,7 @@ run_stressor() {
local runtime="$2"
# Add 50% to runtime; will forcefully terminate if stress-ng
# fails to return in that time.
- end_time=$((runtime*15/10))
+ end_time=$((runtime*2))
echo "Running stress-ng $1 stressor for $2 seconds...."
logger -t "memory_stress_ng" "Running stress-ng $1 stressor for $2 seconds..."
# Use "timeout" command to launch stress-ng, to catch it should it go into la-la land