[Sugar-devel] [PATCH] Add cpu and memory resource indicator to frame
James Cameron
quozl at laptop.org
Sun Jul 11 23:25:24 EDT 2010
On Sat, Jul 10, 2010 at 01:04:37PM +0530, anishmangal2002 wrote:
> This patch adds an icon to the frame, whose palette
> menu displays the memory and cpu resources. For computing
> free memory, the code reads the /proc/meminfo file (thanks
> quozl) and for computing cpu usage, the code reads the
> /proc/stat file.
>
> The palette menu entries are only updated (in one second
> intervals) when the palette menu is visible thus
> possibly saving cpu cycles.
>
> Signed-off-by: anishmangal2002 <anishmangal2002 at gmail.com>
Reviewed-by: James Cameron <quozl at laptop.org>
--
James Cameron
http://quozl.linux.org.au/
More information about the Sugar-devel
mailing list