Skip to content

Commit

Permalink
Optimizing the calculation of totalCpu
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa0128 committed Nov 23, 2023
1 parent f2716f6 commit 8d60e86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from __future__ import absolute_import

__version__ = '2.8.0'
__version__ = '2.8.1'
2 changes: 1 addition & 1 deletion solox/public/apm.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def getTotalCpuStat(self):
toks = line.split()
if toks[1] in ['', ' ']:
toks.pop(1)
for i in range(1, 7):
for i in range(1, 8):
totalCpu += float(toks[i])
return float(totalCpu)

Expand Down
2 changes: 1 addition & 1 deletion solox/public/apm_pk.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def getTotalCpuStat(self, deviceId):
toks = line.split()
if toks[1] in ['', ' ']:
toks.pop(1)
for i in range(1, 7):
for i in range(1, 8):
totalCpu += float(toks[i])
return float(totalCpu)

Expand Down

0 comments on commit 8d60e86

Please sign in to comment.