Commit b1a72fbc authored by Santhosh Kumar's avatar Santhosh Kumar

cleanup code

parent 41a97782
...@@ -138,7 +138,7 @@ def manage_memory(memory_size): ...@@ -138,7 +138,7 @@ def manage_memory(memory_size):
stress_process = None stress_process = None
# Start stress-ng process with specified size # Start stress-ng process with specified size
stress_process = subprocess.Popen(['stress-ng', '--vm', '1', '--vm-bytes', memory_size]) stress_process = subprocess.Popen(['stress-ng', '--vm', '1', '--vm-bytes', str(size)])
return f'Started new stress-ng process with {size}MB memory size.' return f'Started new stress-ng process with {size}MB memory size.'
else: else:
if stress_process: if stress_process:
...@@ -154,7 +154,7 @@ def hello(): ...@@ -154,7 +154,7 @@ def hello():
# Increment request counter # Increment request counter
function_requests_total.inc() function_requests_total.inc()
for i in range(100000): for i in range(1000000):
for j in range(1000): for j in range(1000):
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment