From d9c330a78f46ee8eaf46531ff846743fb8d38386 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 11 Mar 2021 10:49:50 +0100 Subject: smooth_refresh: comparison of unsigned expression in '< 0' is always false --- src/smooth_refresh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1