Added with option for api_get_module_graph

This commit is contained in:
fbsanchez 2021-01-12 13:50:44 +01:00
parent a56a0e7023
commit b2d1369717
1 changed files with 4 additions and 0 deletions

View File

@ -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) {