Skip to content
Commit f3f509fc authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Nate Graham
Browse files

CPU Plugin: Prevent integer overflow of total usage

In some cases, the values we read from the system can result in a
negative difference to the previous values. This was already guarded
partially, but only for system/user/wait usage. Total usage would still
be able to go negative, resulting in overflow of the total usage.

Instead, ensure that all the differences are always at least 0, so if we
add things together we aren't adding negatives.

BUG: 448626
FIXED-IN: 5.24.1
parent 40be1b73
Loading
Loading
Loading
Pipeline #133103 passed with stage
in 44 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment