Skip to content

Commit

Permalink
Fix #522
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jul 25, 2024
1 parent 4e15378 commit 732bf17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jtop/core/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_process_info(self, pid, gpu_mem_usage, process_name, uptime):
stime = float(stat[14])
starttime = float(stat[21]) / self._clk_tck
total_time = (utime + stime) / self._clk_tck
proc_uptime = uptime - starttime
proc_uptime = max(1, uptime - starttime)
cpu_percent = 100 * (total_time / proc_uptime)

process = [
Expand Down

0 comments on commit 732bf17

Please sign in to comment.