From 3857d4b98491d8ecc0b41dccc0e418bfcc494b86 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 2 Feb 2011 03:37:09 +0000 Subject: [PATCH] fix for session stats parsing --- parse_session_stats.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parse_session_stats.py b/parse_session_stats.py index 39c9a0423..8104bc151 100755 --- a/parse_session_stats.py +++ b/parse_session_stats.py @@ -31,13 +31,16 @@ def gen_report(name, lines): print >>out, "set key box" print >>out, 'plot', column = 2 + first = True for k in keys: if k not in lines: column = column + 1 continue - print >>out, ' "%s" using 1:%d title "%s" axes %s with steps,' % (sys.argv[1], column, k, axes[column-2]), + if not first: print >>out, ', ', + print >>out, ' "%s" using 1:%d title "%s" axes %s with steps' % (sys.argv[1], column, k, axes[column-2]), + first = False column = column + 1 - print >>out, 'x=0' + print >>out, '' out.close() os.system('gnuplot session_stats_%s.gnuplot' % name);