diff --git a/sauna/plugins/base.py b/sauna/plugins/base.py index bb7c49b..649432b 100644 --- a/sauna/plugins/base.py +++ b/sauna/plugins/base.py @@ -63,9 +63,9 @@ def _value_to_status_more(cls, value, check_config, modifier=None): @classmethod def _strip_percent_sign(cls, value): try: - return int(value) + return float(value) except ValueError: - return int(value.split('%')[0]) + return float(value.split('%')[0]) @classmethod def _strip_percent_sign_from_check_config(cls, check_config):