This commit is contained in:
Marc Mance
2024-05-30 12:24:26 -04:00
parent 7bc07a2b41
commit e114a4f34a

View File

@@ -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