Skip to content

Commit

Permalink
scripts/supybot: use %.2f for rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
James Lu authored and James Lu committed Apr 11, 2015
1 parent fc418d3 commit 6fa96df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/supybot
Expand Up @@ -132,7 +132,7 @@ def main():
seconds = now - world.startedAt
log.info('Total uptime: %s.', utils.gen.timeElapsed(seconds))
(user, system, _, _, _) = os.times()
log.info('Total CPU time taken: %s seconds.', round(user+system, 2))
log.info('Total CPU time taken: %.2f seconds.', user+system)
log.info('No more Irc objects, exiting.')

if __name__ == '__main__':
Expand Down

0 comments on commit 6fa96df

Please sign in to comment.