From e104fb80f447646735229937671db08d469a795f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 17 Jan 2018 19:01:10 +0100 Subject: [PATCH] cgtop: minor modernization --- src/cgtop/cgtop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index fe339eb..17facf8 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; -- 2.7.4