From 598e5be4be7228b2aad382280563425838ca6ff8 Mon Sep 17 00:00:00 2001 From: Sms-Rk Date: Mon, 27 Mar 2023 00:00:25 +0330 Subject: [PATCH] simple change to accept float numbers as interval --- nvitop/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvitop/cli.py b/nvitop/cli.py index b3fe85a..3d3dec0 100644 --- a/nvitop/cli.py +++ b/nvitop/cli.py @@ -32,7 +32,7 @@ def parse_arguments() -> argparse.Namespace: ) def posint(argstring: str) -> int: - num = int(argstring) + num = float(argstring) if num <= 0: raise ValueError return num