Bug (closed)

correct get Progress sum

Summary

closed
Jan 11, 2007
100%
Jan 11, 2007 / josefchmel
Aug 5, 2009 / rafael.dalpra
 

Attached files

No files uploaded
 
This task does not have any text yet.
Doubleclick here to add some.

Issue report

Minor
Have not tried
win apache2.0 php5
0.078
bad result
good result

from class_project.inc.php

  /**
    * get Progress sum
    */
    function getProgressSum()
    {

        $sum=0;
        if($tasknum = $this->getNumTasks()) {
			if($tasksum = $this->getSumTasksProgress()) {
			//$sum=$tasksum/$tasknum*100;
			$sum=($tasksum/$tasknum*100)/100;
			}
        }
        return $sum;
    }
 

1 Comments

pixtur:I don't see what's bad with the results...

11 years ago

Please be a little bit more precise or attach screenshots.