diff --git a/win32/Lib/win32pdhquery.py b/win32/Lib/win32pdhquery.py index 75f019a773..bda1665f0a 100644 --- a/win32/Lib/win32pdhquery.py +++ b/win32/Lib/win32pdhquery.py @@ -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