Skip to content

Commit

Permalink
Fix passing float to range in win32pdhquery.Query.collectdatafor (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Jan 30, 2024
1 parent 5c09545 commit 93426ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/Lib/win32pdhquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def collectdatafor(self, totalperiod, period=1):
tempresults = []
try:
self.open()
for ind in range(totalperiod / period):
for ind in range(int(totalperiod / period)):
tempresults.append(self.collectdata())
time.sleep(period)
self.curresults = tempresults
Expand Down

0 comments on commit 93426ff

Please sign in to comment.