Skip to content

Commit 775324a

Browse files
authored
Merge pull request nlohmann#33 from AlexisWilke/empty_queue_divide_by_zero
2 parents b51abc1 + 4b4899f commit 775324a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/v2_queue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>Queue</h1>
3131
<p>todo: {{ executor.count }} patches</p>
3232

3333
{% set stats = stats.run_stats() %}
34-
{% set patch_finished_percentage = 100.0 * ((stats.patch.count._all_ - stats.patch.count.incomplete) / stats.patch.count._all_) %}
34+
{% set patch_finished_percentage = 0.0 if stats.patch.count._all_ == 0 else 100.0 * ((stats.patch.count._all_ - stats.patch.count.incomplete) / stats.patch.count._all_) %}
3535

3636
<div class="progress">
3737
<div class="progress-bar{{ additional_bar_class }}" role="progressbar" style="width: {{ patch_finished_percentage }}%">

0 commit comments

Comments
 (0)