aboutsummaryrefslogtreecommitdiffstats
path: root/compact_pm_ovd.py
diff options
context:
space:
mode:
Diffstat (limited to 'compact_pm_ovd.py')
-rwxr-xr-xcompact_pm_ovd.py11
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: