aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManohar Vanga <mvanga@mpi-sws.org>2016-04-01 07:57:27 -0400
committerManohar Vanga <mvanga@mpi-sws.org>2016-04-01 07:57:27 -0400
commit5733e974b6daa7339d8f46e19755bcc64d9c1e63 (patch)
tree6ab71ff3eacb6d6e7c502e2c9621f193e221e23b
parent8fbe5ea60702063cad290a641b0965ad00fbcc06 (diff)
Ignore empty files on st-draw
-rwxr-xr-xst-draw1
1 files changed, 1 insertions, 0 deletions
diff --git a/st-draw b/st-draw
index afffd0b..dd12e85 100755
--- a/st-draw
+++ b/st-draw
@@ -80,6 +80,7 @@ def main(args=sys.argv[1:]):
80 opts.output = default_output_name(opts.file) 80 opts.output = default_output_name(opts.file)
81 81
82 try: 82 try:
83 opts.file = [f for f in opts.file if os.stat(f).st_size > 0]
83 trace = SchedTrace(opts.file) 84 trace = SchedTrace(opts.file)
84 except IOError, msg: 85 except IOError, msg:
85 print 'Could not load trace files (%s)' % msg 86 print 'Could not load trace files (%s)' % msg