You are not logged in.
Pages: 1
procedure TSystemUse.BackgroundExecute
...
difftot := (fSysPrevKernel-skrn)+(fSysPrevUser-susr); // In my case the difftot < 0
...
if difftot>0 then begin // when I try to use: if difftot<>0 then begin CPU usage is correct
Kernel := diffkrn*100/difftot;
User := diffusr*100/difftot;
end else begin
Kernel := 0;
User := 0;
end;
Offline
Pages: 1