Skip to content

Commit

Permalink
Fix %CPU for Windows (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack committed Feb 1, 2022
1 parent f7c12f7 commit 66edf55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rqd/rqd/rqmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def rssUpdate(self, frames):
stat = stats[frame.pid]
frame.rss = stat["rss"] // 1024
frame.maxRss = max(frame.rss, frame.maxRss)
frame.runFrame.attributes["pcpu"] = str(stat["pcpu"])
frame.runFrame.attributes["pcpu"] = str(
stat["pcpu"] * self.__coreInfo.total_cores
)
return

if platform.system() != 'Linux':
Expand Down

0 comments on commit 66edf55

Please sign in to comment.