mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
cgtop: minor modernization
This commit is contained in:
parent
00b5974f70
commit
e104fb80f4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user