summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-02-20 13:36:39 -0500
committerKeith Bostic <keith@wiredtiger.com>2013-02-20 13:36:39 -0500
commit66072101642a4327a2dde919bbe418390d2d450d (patch)
treeb5a8230eefc046dec2d0439725eafe264b90b7b1 /tools
parent332285b55b0b2fa87c02b57cfdeafa64cce8ff0c (diff)
downloadmongo-66072101642a4327a2dde919bbe418390d2d450d.tar.gz
Support multiple files.
Diffstat (limited to 'tools')
-rw-r--r--tools/statlog.py7
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]])