Skip to content

Commit

Permalink
No decimal places on performance counters
Browse files Browse the repository at this point in the history
  • Loading branch information
matt200-ok committed Dec 23, 2024
1 parent c74c328 commit b2c7b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/llm-voice-assistant/python/windows_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def handler(_, __) -> None:
queue.put({
'command': Commands.USAGE,
'name': 'CPU',
'text': f"{round(cpu_usage, 2)}%",
'text': f"{math.ceil(cpu_usage)}%",
'bar': (cpu_usage / 100)
})

Expand All @@ -664,7 +664,7 @@ def handler(_, __) -> None:
queue.put({
'command': Commands.USAGE,
'name': 'GPU',
'text': f"{round(gpu_usage, 2)}%",
'text': f"{math.ceil(gpu_usage)}%",
'bar': (float(gpu_usage) / 100)
})

Expand Down

0 comments on commit b2c7b87

Please sign in to comment.