diff options
author | Nathan Binkert <nate@binkert.org> | 2009-07-02 16:48:21 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-07-02 16:48:21 -0700 |
commit | 5738dc340072124fca5a6380d47b33f7cdf7988c (patch) | |
tree | 0b25098b0a335d8acfe1666ecdb28da60a1a9d8a /util/stats | |
parent | 26c70ce2cbb29e497a0a631e4a067051e03b22e9 (diff) | |
download | gem5-5738dc340072124fca5a6380d47b33f7cdf7988c.tar.xz |
stats: fix usage of jobfile
Diffstat (limited to 'util/stats')
-rwxr-xr-x | util/stats/stats.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/stats/stats.py b/util/stats/stats.py index 2aa0d4e0b..ea2210685 100755 --- a/util/stats/stats.py +++ b/util/stats/stats.py @@ -28,7 +28,6 @@ # # Authors: Nathan Binkert -from __future__ import division import re, sys, math def usage(): @@ -413,7 +412,6 @@ class Options: pass if __name__ == '__main__': import getpass - from jobfile import JobFile options = Options() options.host = None @@ -426,7 +424,7 @@ if __name__ == '__main__': options.graph = False options.ticks = False options.printmode = 'G' - jobfilename = 'Test.py' + jobfilename = None options.jobfile = None options.all = False @@ -463,6 +461,7 @@ if __name__ == '__main__': options.ticks = a if jobfilename: + from jobfile import JobFile options.jobfile = JobFile(jobfilename) if not options.host: options.host = options.jobfile.dbhost |