This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  bbc90d7edb210e87493a7dc663f1223f88ae512a (commit)
      from  83fa5d9c2fdd809abd05dfaf8b9112f1c60b3d67 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=bbc90d7edb210e87493a7dc663f1223f88ae512a

commit bbc90d7edb210e87493a7dc663f1223f88ae512a
Author: Franck Villaume <[email protected]>
Date:   Fri Jan 5 09:53:30 2018 +0000

    docman review: use floor for %

diff --git a/src/common/docman/DocumentReview.class.php 
b/src/common/docman/DocumentReview.class.php
index 1117ccb..214b89c 100644
--- a/src/common/docman/DocumentReview.class.php
+++ b/src/common/docman/DocumentReview.class.php
@@ -558,7 +558,7 @@ class DocumentReview extends FFError {
                                $doneMandatoryUsers[] = $mandatoryUser;
                        }
                }
-               $percentDoneMandatoryUsers = ((count($doneMandatoryUsers) / 
count($mandatoryUsers)) * 100).'%';
+               $percentDoneMandatoryUsers = floor((count($doneMandatoryUsers) 
/ count($mandatoryUsers)) * 100).'%';
                $doneOptionalUsers = array();
                $optionalUsers = $this->getOptionalUsers();
                foreach ($optionalUsers as $optionalUser) {
@@ -567,7 +567,7 @@ class DocumentReview extends FFError {
                        }
                }
                if (count($optionalUsers) > 0) {
-                       $percentDoneOptionalUsers = ((count($doneOptionalUsers) 
/ count($optionalUsers)) * 100).'%';
+                       $percentDoneOptionalUsers = 
floor((count($doneOptionalUsers) / count($optionalUsers)) * 100).'%';
                } else {
                        $percentDoneOptionalUsers = _('n/a');
                }

-----------------------------------------------------------------------

Summary of changes:
 src/common/docman/DocumentReview.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to