Commit 060d683d authored by Jin Qian's avatar Jin Qian
Browse files

uid_sys_stats: fix overflow when io usage delta is negative



Setuid can cause negative delta. Check this and update total usage only
if delta is positive.

Bug: 64317562
Change-Id: I4818c246db66cabf3b11d277faceedec1678694a
Signed-off-by: default avatarJin Qian <jinqian@google.com>
parent 5a5d227d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment