[grapefruit] SystemMonitor
Roman Cheplyaka
roma at ro-che.info
Sun Apr 5 11:09:43 EDT 2009
* Roman Cheplyaka <roma at ro-che.info> [2009-04-05 17:53:20+0300]
> I've added a new example -- system monitor[1]. Its intended behaviour is to
> show average CPU usage in GTK text label.
>
> However, when I execute main, nothing observable happens, looks like it falls
> in an infinite recursion. Did I do something wrong?
>
> Any criticism is appreciated, of course. I'll be in IRC later today.
>
> I also pushed a small haddock fix, because the old haddock failed to be
> parsed.
>
> 1. http://code.haskell.org/grapefruit/main/grapefruit-examples/src/Examples/Grapefruit/SystemMonitor.hs
Aha, when compiled (not run from ghci) it prints:
SystemMonitor: thread blocked indefinitely
The same happens if I replace /proc/loadavg with ~/.signature, so it
isn't related to kernel issues.
--
Roman I. Cheplyaka :: http://ro-che.info/
"Don't let school get in the way of your education." - Mark Twain
More information about the Grapefruit
mailing list