diff options
| author | auric <auric7@protonmail.com> | 2025-09-07 16:09:42 -0500 |
|---|---|---|
| committer | auric <auric7@protonmail.com> | 2025-09-07 16:09:42 -0500 |
| commit | b59b8b8e5d16af7f0daccb280a4991e3fe428e41 (patch) | |
| tree | 96ed0e580730ab6315e9322e2bb2933c9f5c8097 /oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c | |
Add files
Diffstat (limited to 'oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c')
| -rw-r--r-- | oldresources/breathing-exo-daemon/v4-clean-shm/loadtest.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#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; +} + |
