From 97cdd0c27649d21fe27b290df42f052700a37ea1 Mon Sep 17 00:00:00 2001 From: Artur Malchanau Date: Wed, 23 Aug 2023 15:35:30 +0300 Subject: [PATCH] Fix clang-tidy warning --- programs/server/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/server/Server.cpp b/programs/server/Server.cpp index 0c5387d98e8..336c15652c2 100644 --- a/programs/server/Server.cpp +++ b/programs/server/Server.cpp @@ -488,7 +488,7 @@ static void sanityChecks(Server & server) "tsc", }; const char * filename = "/sys/devices/system/clocksource/clocksource0/current_clocksource"; - if (fastClockSources.count(readLine(filename)) == 0) + if (!fastClockSources.contains(readLine(filename))) server.context()->addWarningMessage("Linux is not using a fast clock source. Performance can be degraded. Check " + String(filename)); } catch (...)