mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
Loadavg (Haiku): adds support on R1B6
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user