aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplot.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/plot.py b/plot.py
index ba67ff2..1b7838c 100755
--- a/plot.py
+++ b/plot.py
@@ -92,6 +92,18 @@ def scenario_heading(conf, want_period=False):
92 dist = 'unknown distribution' 92 dist = 'unknown distribution'
93 period = None 93 period = None
94 if 'dist' in conf: 94 if 'dist' in conf:
95
96 # convert diss style to old style
97 # try regular expressions
98 m = re.match('(uni|bimo)-(light|medium|heavy)-?(33|250)?', conf['dist'])
99 if m:
100 # convert
101 conf['diss-dist'] = conf['dist']
102 conf['dist'] = m.group(1)
103 conf[m.group(2)] = ''
104 if m.group(3):
105 conf[m.group(3)] = ''
106
95 if conf['dist'] == 'uni': 107 if conf['dist'] == 'uni':
96 dist = 'utilization uniformly ' 108 dist = 'utilization uniformly '
97 if 'light' in conf: 109 if 'light' in conf: