diff options
author | Eric Anholt <eric@anholt.net> | 2013-03-25 18:02:19 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-04-08 16:21:07 -0700 |
commit | 266d20004029654799f401d6f61313f3b0398b96 (patch) | |
tree | ca74affb6b58d759cc823e6f40d6869a0eace7e4 /run.py | |
parent | 16cb1705fe546b09f5099b2314ba28d5c6c5d81b (diff) |
Fix up formatting a bit
Diffstat (limited to 'run.py')
-rwxr-xr-x | run.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |