Fix clang-tidy warning

This commit is contained in:
Artur Malchanau 2023-08-23 15:35:30 +03:00
parent 0fd26152e3
commit 97cdd0c276
No known key found for this signature in database
GPG Key ID: 150F92E9060ADF60

View File

@ -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 (...)