Enlightenment: Fix cpumonitor gadget core usage calc
This commit is contained in:
parent
b7e2454914
commit
a8f5529d25
|
@ -43,6 +43,8 @@ _cpumonitor_proc_getusage(Instance *inst)
|
|||
{
|
||||
if (k > 0)
|
||||
{
|
||||
total = 0;
|
||||
percent = 0;
|
||||
if (!strncmp(buf, "cpu", 3))
|
||||
{
|
||||
line = strchr(buf, ' ');
|
||||
|
|
Loading…
Reference in New Issue