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:
parent
f388312120
commit
a60ff1f5b7
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user