diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 3756328fa7..9eb2d2fdeb 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -300,7 +300,7 @@ static int refresh_one( r = cg_enumerate_subgroups(controller, path, &d); if (r < 0) { - if (r == ENOENT) + if (r == -ENOENT) return 0; return r;