Explorar o código

icinga2: check_conntrack_size: Use float values for useful calculation.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm %!s(int64=7) %!d(string=hai) anos
pai
achega
400b8522ba
Modificáronse 1 ficheiros con 1 adicións e 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: