[evolvis-commits] r7980: fixing percent compl?==?UTF-8?Q?ete↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Feb 24 15:54:35 CET 2011
Author: mirabilos
Date: 2011-02-24 15:54:35 +0100 (Thu, 24 Feb 2011)
New Revision: 7980
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php
Log:
fixing percent complete
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php 2011-02-24 14:54:31 UTC (rev 7979)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php 2011-02-24 14:54:35 UTC (rev 7980)
@@ -67,7 +67,7 @@
// Yellow diagonal line pattern on a red background
$activity[$i]->SetPattern(BAND_RDIAG, "yellow");
$activity[$i]->SetFillColor ("red");
- $activity[$i]->progress->Set( (( $pt_arr[$i]->getPercentComplete() ) ? (1/$pt_arr[$i]->getPercentComplete()) : 0));
+ $activity[$i]->progress->Set( (( $pt_arr[$i]->getPercentComplete() ) ? ($pt_arr[$i]->getPercentComplete()/100) : 0));
$activity[$i]->progress->SetPattern(BAND_RDIAG, "blue");
// Finally add the bar to the graph
$graph->Add( $activity[$i] );
More information about the evolvis-commits
mailing list