diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-27 11:54:54 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-27 11:54:54 -0400 |
commit | 0fbeff4a0887a48dea0a95a1d51e4ff9766c8d12 (patch) | |
tree | c5809ae94e6e74cbcec81d258d0f22e932622905 /compact_pm_ovd.py | |
parent | a048bb28a4f1377e81cecdefc3f9fb64f4bab7ed (diff) |
Fix "proper" iteration on arrays and typos
Diffstat (limited to 'compact_pm_ovd.py')
-rwxr-xr-x | compact_pm_ovd.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/compact_pm_ovd.py b/compact_pm_ovd.py index 4670de0..10151d4 100755 --- a/compact_pm_ovd.py +++ b/compact_pm_ovd.py | |||
@@ -57,14 +57,9 @@ class WSSCompactor(): | |||
57 | wstr += 'wss=' + str(wss) + ':(max, avg), ' | 57 | wstr += 'wss=' + str(wss) + ':(max, avg), ' |
58 | csvf.write(wstr[0:-2] + '\n') | 58 | csvf.write(wstr[0:-2] + '\n') |
59 | 59 | ||
60 | tkeys = self.ovhead_table.keys() | 60 | for key in sorted(self.ovhead_table.keys(), key=int): |
61 | for i in range(0,len(tkeys)): | 61 | wstr = key + ', ' |
62 | tkeys[i] = int(tkeys[i]) | 62 | for value in self.ovhead_table[key]: |
63 | tkeys.sort() | ||
64 | |||
65 | for key in tkeys: | ||
66 | wstr = str(key) + ', ' | ||
67 | for value in self.ovhead_table[str(key)]: | ||
68 | if float(value) > 0: | 63 | if float(value) > 0: |
69 | wstr += value + ', ' | 64 | wstr += value + ', ' |
70 | else: | 65 | else: |