system-load-plugin-0.1.0
Martti Kuparinen
martti.kuparinen at iki.fi
Wed Jul 2 07:50:51 CEST 2003
Martti Kuparinen wrote:
> Riccardo Persichetti wrote:
>
>>
>> As the name implies, it's an xfce4 plugin that monitors the
>> current system load.
>> At the moment it needs the "/proc/stat" file in order to work,
>
>
> Why don't you use getloadavg(3)?
Sorry, I didn't look at the code. It looks like you display the load in
percents and I don't know if it's possible use getloadavg for that. In
other words, what is 100%? (Problem: you can have load > 1.0).
But maybe you could use vmstat's idle and perform 100-idle to get the
current load? Ask me if you need help with this...
Martti
More information about the Xfce4-dev
mailing list