Browse Source

icinga2: check_conntrack_size: Use float values for useful calculation.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 6 years ago
parent
commit
400b8522ba
1 changed files with 1 additions and 1 deletions
  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: