projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b5974
)
cgtop: minor modernization
author
Lennart Poettering
<lennart@poettering.net>
Wed, 17 Jan 2018 18:01:10 +0000
(19:01 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 22 Jan 2018 15:26:55 +0000
(16:26 +0100)
src/cgtop/cgtop.c
patch
|
blob
|
history
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index
fe339eb
..
17facf8
100644
(file)
--- 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;