Skip to content

Commit 93426ff

Browse files
authored
Fix passing float to range in win32pdhquery.Query.collectdatafor (#2170)
1 parent 5c09545 commit 93426ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

win32/Lib/win32pdhquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def collectdatafor(self, totalperiod, period=1):
496496
tempresults = []
497497
try:
498498
self.open()
499-
for ind in range(totalperiod / period):
499+
for ind in range(int(totalperiod / period)):
500500
tempresults.append(self.collectdata())
501501
time.sleep(period)
502502
self.curresults = tempresults

0 commit comments

Comments
 (0)