From 7b54b0af61f3a55896d827c8f2af4f79a1daf291 Mon Sep 17 00:00:00 2001 From: guruevi Date: Tue, 14 Oct 2008 19:40:29 +0000 Subject: [PATCH] 2008-10-14 Evi Vanoost * reporting/fgraph.php: Fixed a bug that wouldn't render specific stats from data overview git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1154 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/reporting/fgraph.php | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 40198bf45c..83ac5330c7 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2008-10-14 Evi Vanoost + + * reporting/fgraph.php: Fixed a bug that wouldn't render specific + stats from data overview + 2008-10-14 Sancho Lerena * include/config_process.php, index.php: Updated version. diff --git a/pandora_console/reporting/fgraph.php b/pandora_console/reporting/fgraph.php index 7c8a7652fd..3401be2bcf 100644 --- a/pandora_console/reporting/fgraph.php +++ b/pandora_console/reporting/fgraph.php @@ -397,11 +397,12 @@ function graphic_combined_module ($module_list, $weight_list, $periodo, $width, function grafico_modulo_sparse ($id_agente_modulo, $periodo, $show_event, $width, $height , $title, $unit_name, $show_alert, $avg_only = 0, $pure = 0, $date = 0) { - include ("../include/config.php"); + global $config; require_once 'Image/Graph.php'; - if (! $date) + if (empty ($date)) $date = time (); + $resolution = $config["graph_res"] * 50; // Number of "slices" we want in graph $fechatope = $date - $periodo;