You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python throws DeprecationWarning when I run arcstat with a custom interval.
Describe how to reproduce the problem
Just run arcstat 2 using Python version 3.8 or above.
Include any warning/errors/backtraces from the system logs
# arcstat 2
time read miss miss% dmis dm% pmis pm% mmis mm% arcsz c
18:47:02 0 0 0 0 0 0 0 0 0 7.7G 7.7G
./arcstat:487: DeprecationWarning: an integer is required (got type decimal.Decimal). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
time.sleep(sint)
The text was updated successfully, but these errors were encountered:
Changed interval value type from decimal to integer,
because of deprecation warning in Python 3.8 and above.
Also changed kstat values type from decimal to integer,
because all the values are integers.
Fixed behavior of arcstat when run without args.
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Bartosz Zieba <bartosz@zieba.pro>
Closesopenzfs#10132Closesopenzfs#10142
System information
Describe the problem you're observing
Python throws DeprecationWarning when I run
arcstat
with a custom interval.Describe how to reproduce the problem
Just run
arcstat 2
using Python version 3.8 or above.Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: