Explorar el Código

icinga2: check_conntrack_size: Use float values for useful calculation.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm hace 7 años
padre
commit
400b8522ba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: