Fix report on time executed (fix bug#7)
- The time reported was wrong in a misguided attempt to round.
This commit is contained in:
parent
dca1931902
commit
e95f94db75
|
@ -1793,9 +1793,9 @@ def show_final_results():
|
|||
time_analyzing = time.time() - starttime
|
||||
print "Lines analyzed = %d" % sumlines,
|
||||
if time_analyzing > 0 and not omit_time: # Avoid divide-by-zero.
|
||||
print "in %.2f seconds (%d lines/second)" % (
|
||||
time_analyzing + 0.5,
|
||||
(int) (sumlines / time_analyzing + 0.5) )
|
||||
print "in %.2f seconds (%.0f lines/second)" % (
|
||||
time_analyzing,
|
||||
(sumlines * 1.0 / time_analyzing) )
|
||||
else:
|
||||
print
|
||||
if output_format: print "<br>"
|
||||
|
|
Loading…
Reference in New Issue