Pārlūkot izejas kodu

icinga2: check_conntrack_size: Use float values for useful calculation.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 gadi atpakaļ
vecāks
revīzija
400b8522ba
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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: