mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-20 09:02:40 +01:00
Merge pull request #1090 from GLolol/scripts/round-cpu-time
scripts/supybot: round total CPU time to 2 decimal places
This commit is contained in:
commit
e937128c69
@ -132,7 +132,7 @@ def main():
|
|||||||
seconds = now - world.startedAt
|
seconds = now - world.startedAt
|
||||||
log.info('Total uptime: %s.', utils.gen.timeElapsed(seconds))
|
log.info('Total uptime: %s.', utils.gen.timeElapsed(seconds))
|
||||||
(user, system, _, _, _) = os.times()
|
(user, system, _, _, _) = os.times()
|
||||||
log.info('Total CPU time taken: %s seconds.', user+system)
|
log.info('Total CPU time taken: %.2f seconds.', user+system)
|
||||||
log.info('No more Irc objects, exiting.')
|
log.info('No more Irc objects, exiting.')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user