X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcgtop%2Fcgtop.c;h=f988adb363f5d428828241396d8896fa3e176d54;hb=461b1822321d6be0d7fd8be29bf3b4993ebd1b85;hp=cc7a99f3dfbe11e11b741326190f40a1e38944e6;hpb=9eb977db5b89b44f254ab40c1876a76b7d7ea2d0;p=elogind.git diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index cc7a99f3d..f988adb36 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -54,7 +54,7 @@ typedef struct Group { uint64_t io_input_bps, io_output_bps; } Group; -static unsigned arg_depth = 2; +static unsigned arg_depth = 3; static usec_t arg_delay = 1*USEC_PER_SEC; static enum { @@ -341,17 +341,22 @@ static int refresh(Hashmap *a, Hashmap *b, unsigned iteration) { r = refresh_one("name=systemd", "/", a, b, iteration, 0); if (r < 0) - return r; - + if (r != -ENOENT) + return r; r = refresh_one("cpuacct", "/", a, b, iteration, 0); if (r < 0) - return r; - + if (r != -ENOENT) + return r; r = refresh_one("memory", "/", a, b, iteration, 0); if (r < 0) - return r; + if (r != -ENOENT) + return r; - return refresh_one("blkio", "/", a, b, iteration, 0); + r = refresh_one("blkio", "/", a, b, iteration, 0); + if (r < 0) + if (r != -ENOENT) + return r; + return 0; } static int group_compare(const void*a, const void *b) {