Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Sep 13, 2023
1 parent d203d77 commit fea8e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/check/hypervguest.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ async def check_hypervguest(
row['EnhancedSessionModeState'])
row['HealthState'] = HEALTH_STATE.get(row['HealthState'])
row['InstallDate'] = parse_wmi_date(row['InstallDate'])
on_time_ms = row.pop('OnTimeInMilliseconds')
on_time_ms = row.pop('OnTimeInMilliseconds') # int
if on_time_ms:
row['OnTimeInSeconds'] = int(on_time_ms // 1000)
row['OnTimeInSeconds'] = on_time_ms // 1000
status = row.pop('OperationalStatus')
row['OperationalStatus'] = OPERATIONAL_STATUS.get(status[0]) \
if len(status) else None
Expand Down

0 comments on commit fea8e09

Please sign in to comment.