diff options
author | rbuj <[email protected]> | 2021-03-11 10:49:50 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-17 10:27:42 +0100 |
commit | d9c330a78f46ee8eaf46531ff846743fb8d38386 (patch) | |
tree | 644e8784037eec03e7cfb824339ccec54e360dcd /src | |
parent | 90d47cdd1c1a79d50138cf58b70a196c193e8305 (diff) | |
download | mate-system-monitor-d9c330a78f46ee8eaf46531ff846743fb8d38386.tar.bz2 mate-system-monitor-d9c330a78f46ee8eaf46531ff846743fb8d38386.tar.xz |
smooth_refresh: comparison of unsigned expression in '< 0' is always false
Diffstat (limited to 'src')
-rw-r--r-- | src/smooth_refresh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smooth_refresh.cpp b/src/smooth_refresh.cpp index 2702851..677bce5 100644 --- a/src/smooth_refresh.cpp +++ b/src/smooth_refresh.cpp @@ -34,7 +34,7 @@ unsigned SmoothRefresh::get_own_cpu_usage() this->last_cpu_time = proctime.rtime; } - usage = CLAMP(usage, 0, 100); + usage = MIN (usage, 100); this->last_total_time = cpu.total; |