X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fswap.c;h=30daa4b118329f7556d0d578a9ec0d0369dfc787;hb=86f8abbafa7a174299caa435c7e0bc5d07b84968;hp=629d1a1e747fd516439123dee4e2e84a3806a38e;hpb=c00718f5ae61eea67abdd92aa4cb65920d4803aa;p=collectd.git diff --git a/src/swap.c b/src/swap.c index 629d1a1e..30daa4b1 100644 --- a/src/swap.c +++ b/src/swap.c @@ -239,7 +239,7 @@ static int swap_read (void) /* {{{ */ sstrerror (errno, errbuf, sizeof (errbuf))); } - if ((swap_total == 0LL) || ((swap_free + swap_cached) > swap_total)) + if ((swap_free + swap_cached) > swap_total) return (-1); swap_used = swap_total - (swap_free + swap_cached);