From b2d13697173b54184307d6da1f97e99a730b6d86 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 12 Jan 2021 13:50:44 +0100 Subject: [PATCH] Added with option for api_get_module_graph --- pandora_console/include/functions_api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 980bfc0d25..ef49a94ad9 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -13773,11 +13773,15 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) // Graph height when send email by alert $height = (!empty($other) && isset($other['data'][3]) && $other['data'][3]) ? $other['data'][3] : 225; + + // Graph width (optional). + $width = (!empty($other) && isset($other['data'][4]) && $other['data'][4]) ? $other['data'][4] : 225; } else { $graph_seconds = $other['data']; $graph_threshold = 0; $other['data'][1] = 0; $height = 225; + $width = '90%'; } if (is_nan($graph_seconds) || $graph_seconds <= 0) {