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
What happens if the vars that stores the Core.user, Core.nice, Core.system etc overflow ? The values are larger than int64 ? I guess you could get some large values on a long running system.
When doing the diff between new_CPU and old_CPU you'll get funny results...
Or even when computing CPU total in Core::cpuTotal().
Or am I missing something ?
The text was updated successfully, but these errors were encountered:
The counters represent 1/100ths of a second, so the computer should run for 3000 million years to overflow them. Even by then, the relative deltas could still be Ok due to how integers work, but that doesn't deserves a test...
Bits are not so small, an almost "perfect" clock would only need 256 bits :-)
What happens if the vars that stores the Core.user, Core.nice, Core.system etc overflow ? The values are larger than int64 ? I guess you could get some large values on a long running system.
When doing the diff between new_CPU and old_CPU you'll get funny results...
Or even when computing CPU total in Core::cpuTotal().
Or am I missing something ?
The text was updated successfully, but these errors were encountered: