summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-03-25 18:02:19 -0700
committerEric Anholt <eric@anholt.net>2013-04-08 16:21:07 -0700
commit266d20004029654799f401d6f61313f3b0398b96 (patch)
treeca74affb6b58d759cc823e6f40d6869a0eace7e4
parent16cb1705fe546b09f5099b2314ba28d5c6c5d81b (diff)
Fix up formatting a bit
-rwxr-xr-xrun.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run.py b/run.py
index 9d8c1ea..501d769 100755
--- a/run.py
+++ b/run.py
@@ -80,11 +80,11 @@ def run_test(filename):
counts[current_type] = counts[current_type] + 1
del counts["ignore"]
- timestr = " {:.4} secs".format(timeafter - timebefore)
+ timestr = " {:.3f} secs".format(timeafter - timebefore)
out = ''
for t in counts:
if counts[t] != 0:
- out += "{0} {1} : {2:6}{3}\n".format(filename, t, counts[t], timestr)
+ out += "{0:40} {1} : {2:6}{3}\n".format(filename, t, counts[t], timestr)
timestr = ""
return out
@@ -124,7 +124,7 @@ def main():
sys.stdout.write(t)
runtimeafter = time.time()
- print("shader-db run completed in {:.1} secs".format(runtimeafter - runtimebefore))
+ print("shader-db run completed in {:.1f} secs".format(runtimeafter - runtimebefore))
if __name__ == "__main__":
main()