kernel & libbsd.so: add getloadavg() and _user_get_loadavg()

the algorithm and reference values are from FreeBSD.

Change-Id: Ia74a796e13adce6a70434c7546c25ca3d553f11f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9150
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2025-04-21 18:43:29 +00:00
parent 14aded56ee
commit d6547c7f81
11 changed files with 129 additions and 0 deletions
+2
View File
@@ -30,6 +30,8 @@ int mkstemps(char *templat, int slen);
long long strtonum(const char *numstr, long long minval,
long long maxval, const char **errstrp);
int getloadavg(double array[], int size);
#ifdef __cplusplus
}
#endif