cgtop: missing '-'

Return codes in systemd are negated and
if (r < 0)  if (r == ENOENT)
        was never true.
This commit is contained in:
Václav Pavlín 2012-09-21 12:04:02 +02:00 committed by Lennart Poettering
parent e57d4fa35e
commit 2f29c419b0

View File

@ -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;