Skip to content

Commit

Permalink
round()
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed May 24, 2019
1 parent 2fa5a2f commit 9d9650e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def draw_should_grep(scan_log_filename, scan):
last_data = should_grep_data[-1]
total = sum(v for k, v in last_data.iteritems())
total = float(total)
data_percent = dict((k, (v / total) * 100) for k, v in last_data.iteritems())
data_percent = dict((k, round((v / total) * 100)) for k, v in last_data.iteritems())
print(' Latest should_grep() percentages: %r' % data_percent)
print('')

Expand Down

0 comments on commit 9d9650e

Please sign in to comment.