1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[lit] Fix check-lit hanging on Windows due to a division by zero exception

This commit is contained in:
Martin Storsjö 2021-03-24 19:27:36 +02:00
parent f388312120
commit a60ff1f5b7

View File

@ -56,7 +56,9 @@ class ProgressPredictor(object):
total_time_remaining = self.predictable_time_remaining + unpredictable_time_remaining
total_time = self.time_elapsed + total_time_remaining
return self.time_elapsed / total_time
if total_time > 0:
return self.time_elapsed / total_time
return 0
class NopDisplay(object):