diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-02-14 15:33:56 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-02-14 15:33:56 +1100 |
commit | 47dab4c6c83f024d84612e683a151b1ae07f70a3 (patch) | |
tree | 179d3fd209d244446e77220ab19234eebe9e0d99 /tools | |
parent | 1d855573547da07db9a79159013ed045b488ab5f (diff) | |
download | mongo-47dab4c6c83f024d84612e683a151b1ae07f70a3.tar.gz |
Fix wtperf NVD3 graph throughput scaling.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wtperf_stats.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/wtperf_stats.py b/tools/wtperf_stats.py index 65e403ee77e..388eb9fe24b 100644 --- a/tools/wtperf_stats.py +++ b/tools/wtperf_stats.py @@ -49,9 +49,6 @@ except ImportError: def munge_dict(values_dict, abstime): sorted_values = sorted(values_dict, key=operator.itemgetter('#time')) start_time = parsetime(sorted_values[0]['#time']) - seconds = (parsetime(sorted_values[1]['#time']) - start_time).seconds - if seconds == 0: - seconds = 1 ret = [] for v in sorted_values: @@ -74,8 +71,8 @@ def munge_dict(values_dict, abstime): title = 'time' elif title.find('latency') == -1 and \ title.find('checkpoints') == -1: - title = title + ' per second' - value = float(value) / seconds + title = title + ' (thousands)' + value = float(value) / 1000 next_val[title] = value ret.append(next_val) |