]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
bindings: use brackets to make logic clearer
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 28 May 2020 11:31:59 +0000 (13:31 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 28 May 2020 15:37:18 +0000 (11:37 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/bindings.c

index 1f9c6e6dadd2f538b87dbb8eed802f031f8125af..b89e28f20172064c954bac143dfe1778f84d91bc 100644 (file)
@@ -224,7 +224,7 @@ static void prune_initpid_store(void)
        }
 
        now = time(NULL);
-       if (now < last_prune + PURGE_SECS)
+       if (now < (last_prune + PURGE_SECS))
                return;
 
        lxcfs_debug("Pruning init pid cache");