projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-4.10' into collectd-5.0
[collectd.git]
/
src
/
swap.c
diff --git
a/src/swap.c
b/src/swap.c
index
629d1a1
..
30daa4b
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-239,7
+239,7
@@
static int swap_read (void) /* {{{ */
sstrerror (errno, errbuf, sizeof (errbuf)));
}
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);
return (-1);
swap_used = swap_total - (swap_free + swap_cached);