summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-11 10:49:50 +0100
committerraveit65 <[email protected]>2021-03-17 10:27:42 +0100
commitd9c330a78f46ee8eaf46531ff846743fb8d38386 (patch)
tree644e8784037eec03e7cfb824339ccec54e360dcd /src
parent90d47cdd1c1a79d50138cf58b70a196c193e8305 (diff)
downloadmate-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.cpp2
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;