diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-02-20 13:36:39 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-02-20 13:36:39 -0500 |
commit | 66072101642a4327a2dde919bbe418390d2d450d (patch) | |
tree | b5a8230eefc046dec2d0439725eafe264b90b7b1 /tools | |
parent | 332285b55b0b2fa87c02b57cfdeafa64cce8ff0c (diff) | |
download | mongo-66072101642a4327a2dde919bbe418390d2d450d.tar.gz |
Support multiple files.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/statlog.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/statlog.py b/tools/statlog.py index c16a5d49be8..afa5951278c 100644 --- a/tools/statlog.py +++ b/tools/statlog.py @@ -80,12 +80,11 @@ shutil.rmtree("reports", True) os.mkdir("reports") # Read the input into a dictionary of lists. -ifile = sys.argv[1:] -if ifile == []: - print "usage: rp file" +if sys.argv[1:] == []: + print "usage: " + sys.argv[0] + " file ..." sys.exit(1) d = defaultdict(list) -for line in fileinput.input(ifile): +for line in fileinput.input(sys.argv[1:]): s = line.strip('\n').split(" ", 4) d[s[4]].append([" ".join([s[0], s[1], s[2]]), s[3]]) |