fixed todo assigned 1% bug instead of 100%

This commit is contained in:
Ulf Gebhardt 2015-09-06 08:51:25 +02:00
parent e8dc594895
commit 2b9351b227

View File

@ -11,6 +11,6 @@ class todo_stats_data {
$this->open = $all-$closed;
$this->closed = $closed;
$this->all = $all;
$this->perc = $this->all == 0 ? 1 : sprintf("%.2f", $this->closed / $this->all * 100);
$this->perc = $this->all == 0 ? sprintf("%.2f",100) : sprintf("%.2f", $this->closed / $this->all * 100);
}
}