mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Swap (macOS): don't check if swap is enabled on macOS 26 or later
This commit is contained in:
@@ -11,8 +11,10 @@ const char* ffDetectSwap(FFlist* result) {
|
||||
}
|
||||
|
||||
if (xsw.xsu_total == 0) {
|
||||
if (ffSysctlGetInt("vm.compressor_mode", 4) <= 2) {
|
||||
return NULL; // Swap is disabled
|
||||
if (!__builtin_available(macOS 26.0, *)) {
|
||||
if (ffSysctlGetInt("vm.compressor_mode", 4) <= 2) { // No longer available in macOS 26.0
|
||||
return NULL; // Swap is disabled
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user