2007-06-17 Sancho Lerena <slerena@artica.es>
* reporting/fgraph.php: Fixed ODOmeter problem with neg. values git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@517 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
358b5d9e9e
commit
b0f7757a0e
|
@ -1,5 +1,7 @@
|
|||
2007-06-17 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* reporting/fgraph.php: Fixed ODOmeter problem with neg. values
|
||||
|
||||
* include/languages/language_en.php: Just a few words added.
|
||||
|
||||
* pandoradb.sql: Added disable field for alerts.
|
||||
|
|
|
@ -1759,6 +1759,12 @@ function odo_tactic ($value1, $value2, $value3){
|
|||
|
||||
$Legend->setPlotarea($Plotarea);
|
||||
$Legend->setAlignment(IMAGE_GRAPH_ALIGN_HORIZONTAL);
|
||||
if ($value1 <0)
|
||||
$value1=0;
|
||||
if ($value2 <0)
|
||||
$value2=0;
|
||||
if ($value3 <0)
|
||||
$value3=0;
|
||||
/***************************Arrows************************/
|
||||
$Arrows = & Image_Graph::factory('dataset');
|
||||
$Arrows->addPoint('Global Health', $value1, 'GLOBAL');
|
||||
|
@ -2000,4 +2006,4 @@ if (isset($_GET["tipo"])){
|
|||
graphic_error ();
|
||||
} else
|
||||
graphic_error ();
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue