From: Jagadedes Date: Thu, 30 Oct 2014 08:47:38 +0000 (+0530) Subject: #29750 percentage round to 100 if getting bigger X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9e991d9cf3335cbf49b739ca6c668411f6cb1f06;p=com.zyxware.civiwci.git #29750 percentage round to 100 if getting bigger --- diff --git a/CRM/Wci/BAO/ProgressBar.php b/CRM/Wci/BAO/ProgressBar.php index 92654f4..ab2aa71 100644 --- a/CRM/Wci/BAO/ProgressBar.php +++ b/CRM/Wci/BAO/ProgressBar.php @@ -194,7 +194,9 @@ class CRM_Wci_BAO_ProgressBar extends CRM_Wci_DAO_ProgressBar { } } (0 == $ga) ? $perc = 0: $perc = (($sa + $bp) / $ga ) * 100; - + if (100 < $perc){ + $perc = 100; + } return $perc; } }