summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-01-17 19:01:10 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-22 16:26:55 +0100
commite104fb80f447646735229937671db08d469a795f (patch)
tree1e65964628d56f0e6c503030c39d928ceb07d0f7 /src
parentcore: propagate TasksMax= on the root slice to sysctls (diff)
downloadsystemd-e104fb80f447646735229937671db08d469a795f.tar.xz
systemd-e104fb80f447646735229937671db08d469a795f.zip
cgtop: minor modernization
Diffstat (limited to 'src')
-rw-r--r--src/cgtop/cgtop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
index fe339eb493..17facf85b6 100644
--- a/src/cgtop/cgtop.c
+++ b/src/cgtop/cgtop.c
@@ -41,6 +41,7 @@
#include "path-util.h"
#include "process-util.h"
#include "stdio-util.h"
+#include "strv.h"
#include "terminal-util.h"
#include "unit-name.h"
#include "util.h"
@@ -212,7 +213,7 @@ static int process(
if (g->n_tasks > 0)
g->n_tasks_valid = true;
- } else if (streq(controller, "cpu") || streq(controller, "cpuacct")) {
+ } else if (STR_IN_SET(controller, "cpu", "cpuacct")) {
_cleanup_free_ char *p = NULL, *v = NULL;
uint64_t new_usage;
nsec_t timestamp;