Loadavg (Haiku): adds support on R1B6

This commit is contained in:
李通洲
2026-08-09 00:56:04 +08:00
parent 881730d0bd
commit 558a90d4e0
2 changed files with 14 additions and 3 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
#include "detection/loadavg/loadavg.h"
#include <sys/loadavg.h>
#if __has_include(<sys/loadavg.h>)
#include <sys/loadavg.h>
#else
#include <stdlib.h>
#endif
const char* ffDetectLoadavg(double result[3]) {
return getloadavg(result, 3) == 3 ? nullptr : "getloadavg() failed";