diff --git a/ixiostat.py b/ixiostat.py index 0e5cbfb..2a36c55 100644 --- a/ixiostat.py +++ b/ixiostat.py @@ -46,7 +46,7 @@ def runZpoolIostat(): for pool in pools: if i == 0: # get timestamp - timestamp = pool.splitlines()[0].strip() + timestamp = int(pool.splitlines()[0].strip()) # Convert to human-readable time using time.localtime() local_time = time.localtime(timestamp) # Format the time components for a more readable output