Przeglądaj źródła

Improving output when swap space has zero size

Jan Wagner 11 lat temu
rodzic
commit
40c870ed3a
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      plugins/check_swap.c

+ 1 - 0
plugins/check_swap.c

@@ -352,6 +352,7 @@ main (int argc, char **argv)
 		percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb);
 	} else {
 		percent_used = 100;
+		status = "- Swap is either disabled, not present, or of zero size. ";
 	}
 
 	result = max_state (result, check_swap (percent_used, free_swap_mb));