mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
simple change to accept float numbers as interval
This commit is contained in:
parent
05284ec2f8
commit
598e5be4be
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue