From d55d5c280758b6fed2c8c598a380c3c6cdc11b18 Mon Sep 17 00:00:00 2001 From: dufuhang Date: Thu, 19 Sep 2024 14:15:53 +0800 Subject: [PATCH] check_positive has some contradictions --- tuned-adm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned-adm.py b/tuned-adm.py index fcf19e2..6e5ac85 100755 --- a/tuned-adm.py +++ b/tuned-adm.py @@ -34,7 +34,7 @@ def check_positive(value): except ValueError: val = -1 if val <= 0: - raise argparse.ArgumentTypeError("%s has to be >= 0" % value) + raise argparse.ArgumentTypeError("%s has to be > 0" % value) return val def check_log_level(value): -- 2.43.0