xibbon / LaTerminal

50 stars 2 forks source link

Monitoring showing wrong CPU usage on dashboard #55

Closed igorkulman closed 1 year ago

igorkulman commented 1 year ago

On my Ubuntu 22.04.1 LTS server ad idle I get about 0.16% - 0.20% cpu load as shown in htop

Screenshot 2023-02-16 at 21 50 27

this shows correctly in the monitoring in the ssh session

IMG_6135

but on dashboard the CPU loads shows as 17% instead of 0.17%

IMG_6136

migueldeicaza commented 1 year ago

Bummer, this one is trickier, on my machine the parsing is correct.

Would you mind showing me what this outputs when the data is out of sync?

cat /proc/loadavg

migueldeicaza commented 1 year ago

Oh actually, on closer inspection, I dont think it is a but in La Terminal.

LoadAverages go from 0 to 1.0 to represent 0 to 100% utilization. Higher numbers than 1 mean that you are over-taxes (ie, load average of 2 means that you have twice as much work to do as CPU time).

So when your load average shows 0.17 it is 17% utilization