From fe5260c772e5a913da4d8d7bac6139f2998dbb8c Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Thu, 1 Jun 2023 15:04:16 +0200 Subject: [PATCH] else --- lib/check/innodb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/check/innodb.py b/lib/check/innodb.py index e837e90..215bd66 100644 --- a/lib/check/innodb.py +++ b/lib/check/innodb.py @@ -352,6 +352,10 @@ def get_stats_from_innodb_status(innodb_status_text): innodb_buffer_pool_pages_used / results['buffer_pool_pages_total'] ) + else: + # Ensure float + results['buffer_pool_pages_total'] = \ + float(results['buffer_pool_pages_total']) if 'buffer_pool_bytes_used' not in results: results['buffer_pool_bytes_used'] = \