From 57ff693b70cb7aaa81e52e9d24f38aa0399a8c46 Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Mon, 24 Feb 2014 17:09:41 +0100 Subject: [PATCH] mon: Fix comparsion typo Signed-off-by: Jan Friesse Reviewed-by: Christine Caulfield --- exec/mon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/mon.c b/exec/mon.c index ab16a473..88c34dc7 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;