Permalink
Browse files

Merge branch 'master' of github.com:spawnfest/beamspirit

  • Loading branch information...
2 parents caf5d24 + 2e1896f commit 327c22840183e436080b2de4b364c209febc0ced Hunter Morris committed Jul 10, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/etop2.erl
View
@@ -250,7 +250,9 @@ loadinfo(SysI) ->
now = Now,
wall_clock = {_, WC},
runtime = {_, RT}} = SysI,
- Cpu = round(100*RT/WC),
+ Cpu = try round(100*RT/WC)
+ catch _:_ -> 0
+ end,
Clock = io_lib:format("~2.2.0w:~2.2.0w:~2.2.0w",
tuple_to_list(element(2,calendar:now_to_datetime(Now)))),
{Cpu,Procs,RQ,Clock}.

0 comments on commit 327c228

Please sign in to comment.