summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;