initctl: new command 'cgroup' to show cgroup config

This is intended to be used with the 'top' command to aid in setting up
and verifying proper limits for services.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-04-06 12:03:20 +02:00
1 parent 02936de993
commit d59f55b90c
4 files changed
+231 -77

No files matched your search

+1 -1
View File
@@ -201,7 +201,7 @@ char *memsz(uint64_t sz, char *buf, size_t len)
int gb, mb, kb, b;
if (!sz) {
strlcpy(buf, "-.-", len);
strlcpy(buf, "--.--", len);
return buf;
}