* Finish task#8769. Remove the fractional part of the progress.

This commit is contained in:
qiyu-xie
2020-12-29 14:03:42 +08:00
parent 1d26c12a50
commit 023a556f3d
+1 -1
View File
@@ -1056,7 +1056,7 @@ class programModel extends model
$hour->totalConsumed = round($hour->totalConsumed, 1);
$hour->totalLeft = round($hour->totalLeft, 1);
$hour->totalReal = $hour->totalConsumed + $hour->totalLeft;
$hour->progress = $hour->totalReal ? round($hour->totalConsumed / $hour->totalReal, 3) * 100 : 0;
$hour->progress = $hour->totalReal ? round($hour->totalConsumed / $hour->totalReal, 2) * 100 : 0;
}
/* Get the number of project teams. */