From b59b8b8e5d16af7f0daccb280a4991e3fe428e41 Mon Sep 17 00:00:00 2001 From: auric Date: Sun, 7 Sep 2025 16:09:42 -0500 Subject: Add files --- oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c (limited to 'oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c') diff --git a/oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c b/oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c new file mode 100644 index 0000000..8cb3162 --- /dev/null +++ b/oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c @@ -0,0 +1,10 @@ +#include +#include +#define _GNU_SOURCE +int main() { + double l[3]; + if (getloadavg(l, 3) != -1) + printf("load: %.2f %.2f %.2f\n", l[0], l[1], l[2]); + return 0; +} + -- cgit v1.2.3