Sfoglia il codice sorgente

icinga2: check_conntrack_size: Use float values for useful calculation.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 anni fa
parent
commit
400b8522ba
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      icinga2/plugins/check_conntrack_size

+ 1 - 1
icinga2/plugins/check_conntrack_size

@@ -31,7 +31,7 @@ ret_map = {
 def read_int (path):
 	try:
 		with open (path, 'r') as fh:
-			return int (fh.read ())
+			return float (fh.read ())
 	except ValueError as v:
 		return -1
 	except IOError as i: