Enlightenment: Fix cpumonitor gadget core usage calc

This commit is contained in:
Stephen 'Okra' Houston 2017-01-08 13:55:55 -06:00
parent b7e2454914
commit a8f5529d25
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ _cpumonitor_proc_getusage(Instance *inst)
{
if (k > 0)
{
total = 0;
percent = 0;
if (!strncmp(buf, "cpu", 3))
{
line = strchr(buf, ' ');