diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-01 16:24:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-02 12:15:25 +0100 |
commit | 5ad096b3f1331b175340129a8c9a5a9d711e5415 (patch) | |
tree | 41896760dde9b0ca2d45d04484c4a2308a600b0e /src/core/slice.c | |
parent | 606303a93ea52a70ebba55bb3152820e630f2164 (diff) |
core: expose consumed CPU time per unit
This adds support for showing the accumulated consumed CPU time per-unit
in the "systemctl status" output. The property is also readable via the
bus.
Diffstat (limited to 'src/core/slice.c')
-rw-r--r-- | src/core/slice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/slice.c b/src/core/slice.c index 4d2eaf7ed6..0bebdbcbc6 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -181,7 +181,8 @@ static int slice_start(Unit *u) { assert(t); assert(t->state == SLICE_DEAD); - unit_realize_cgroup(u); + (void) unit_realize_cgroup(u); + (void) unit_reset_cpu_usage(u); slice_set_state(t, SLICE_ACTIVE); return 1; |