You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show correct CPU usage when the process is terminated early (#2445)
When the process is terminated its CPU time calculation could be incorrect since
gopsutil sometimes returns CPU times that are lower than previously returned times.
This was resulting in negative CPU time delta, which was then converted to uint32
percent resulting in overflowing of the negative number into large positive number
and very large incorrect CPU percentages shown.
This changes fixes the problem by ensuring the calculated CPU time delta is never
negative.
0 commit comments