eslint-config: add de-morgan

This commit is contained in:
undefined committed 2025-02-16 00:16:43 +08:00
1 parent 92afe8abef
commit 81d69adfb0
10 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -229,7 +229,7 @@ export async function versionCheck(reportWarn: (str: string) => void, reportErro
const { osinfo } = await sysinfo.get();
if (sandboxCgroup === 2) {
const kernelVersion = osinfo.kernel.split('-')[0];
if (!(gte(kernelVersion, '5.19.0') && gte(sandboxVersion, '1.6.10'))) {
if (!gte(kernelVersion, '5.19.0') || !gte(sandboxVersion, '1.6.10')) {
reportWarn('You are using cgroup v2 without kernel 5.19+. This could result in inaccurate memory usage measurements.');
}
}