initctl: add cpu/mem limits as well to json status output

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2025-12-17 08:19:37 +01:00
1 parent 864b71af14
commit 43ca51c3b1
3 files changed
+86 -2

No files matched your search

+2 -1
View File
@@ -146,7 +146,7 @@ char *pid_cgroup(int pid)
return NULL;
}
static char *cgroup_val(char *path, char *file, char *buf, size_t len)
char *cgroup_val(char *path, char *file, char *buf, size_t len)
{
char *val = NULL;
FILE *fp;
@@ -289,6 +289,7 @@ int cgroup_throttle(char *group, uint64_t *throttled_usec, uint64_t *nr_throttle
return 0;
}
static float cgroup_cpuload(struct cg *cg)
{
char fn[256];