cpu usage display conky vs. top
lee
lee at yun.yagibdah.de
Sun Jul 21 07:55:47 UTC 2013
Mateusz Marzantowicz <mmarzantowicz at osdf.com.pl> writes:
> On 19.07.2013 12:32, lee wrote:
>> Suvayu Ali <fatkasuvayu+linux at gmail.com> writes:
>>
>>> On Thu, Jul 18, 2013 at 05:13:12PM +0200, lee wrote:
>>>> Hi,
>>>>
>>>> does anyone know what conky displays as CPU usage for a process? The
>>>> values are different in conky and top, for example, top might show 11.6
>>>> for a process while conky says 3.01.
>>
>> BTW, conky also ignores an update interval specified for mail checking.
>> I specified an hour and it updates every 10 seconds. Maybe I'll write
>> my own monitor so I do know what it does, or stay with xosview ...
>>
>>
>
> Answer for all your questions is in conky's source code. In file
> src/linux.cc, there is a function called get_cpu_count which grabs data
> from /proc/stat . After this function you'll find several other
> functions that open /proc/stat .
Did you find an explanation for why it displays different numbers than
top does or why it ignores the update interval for checking mail? I
thought it probably uses the same data sources for this information and
didn't really want to look at the source code.
--
Fedora release 19 (Schrödinger’s Cat)
More information about the users
mailing list