diff options
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rest_server.py b/rest_server.py index 7fba94a..45d77ff 100644 --- a/rest_server.py +++ b/rest_server.py @@ -74,14 +74,17 @@ def results_page(job_id): key = "%s.queue-depth.%s.block-size.%s.read.latency" % \ (workload, queue_depth, block_size) - - print key + "=" + str(results[key]) if key in results: rlatencies.append(results[key] / 1000) + else: + rlatencies.append(0) + key = "%s.queue-depth.%s.block-size.%s.write.latency" % \ (workload, queue_depth, block_size) if key in results: wlatencies.append(results[key] / 1000) + else: + wlatencies.append(0) chart = Barchart() chart.barchart3d(queue_depths, block_sizes, read_latencies, 'g', @@ -307,9 +310,6 @@ class Job(Resource): storperf.workloads = request.json['workload'] else: storperf.workloads = None - # Add block size, queue depth, number of passes here. - if ('workload' in request.json): - storperf.workloads = request.json['workload'] job_id = storperf.execute_workloads() |