diff options
-rwxr-xr-x | plot.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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: |