[wmii] Re: Adding cpu usage to status bar

From: Alexander Clouter <alex_AT_digriz.org.uk>
Date: Tue, 5 May 2009 23:22:42 +0100

Kris Maglione <maglione.k_AT_gmail.com> wrote:
> [-- text/plain, encoding 7bit, charset: us-ascii, 36 lines --]
>
> On Tue, May 05, 2009 at 06:50:07PM +0100, Alexander Clouter wrote:
>>Eugh, that truly is horrible.
>>
>>Have a look at /proc/stat and section 1.8 of
>>Documentation/filesystems/proc.txt in the Linux kernel tree.
>
> You're right, but I don't think /proc/stat is especially useful.
> It requires too much processing for a script. I've lately used
> iostat, because it gives me disk useage information along with
> CPU usage. The attached script is fairly arcane, but most of it
> goes towards determining the background/foreground color for a
> given usage.
>
...and of course upon re-reading this I remembered 'vmstat -n 1' :-/

Cheers

-- 
Alexander Clouter
.sigmonster says: What GOOD is a CARDBOARD suitcase ANYWAY?
Received on Tue May 05 2009 - 22:22:42 UTC

This archive was generated by hypermail 2.2.0 : Tue May 05 2009 - 23:12:06 UTC