Signed-off-by: Jan Friesse <[email protected]>
---
exec/mon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/exec/mon.c b/exec/mon.c
index ab16a47..88c34dc 100644
--- a/exec/mon.c
+++ b/exec/mon.c
@@ -315,7 +315,7 @@ static int32_t percent_mem_used_get(void)
swap_stats = sg_get_swap_stats();
#endif
- if (mem_stats == NULL || swap_stats != NULL) {
+ if (mem_stats == NULL || swap_stats == NULL) {
log_printf (LOGSYS_LEVEL_ERROR, "Unable to get memory stats:
%s",
sg_str_error(sg_get_error()));
return -1;
--
1.7.1
_______________________________________________
discuss mailing list
[email protected]
http://lists.corosync.org/mailman/listinfo/discuss