Added with option for api_get_module_graph
This commit is contained in:
parent
a56a0e7023
commit
b2d1369717
|
@ -13773,11 +13773,15 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4)
|
||||||
|
|
||||||
// Graph height when send email by alert
|
// Graph height when send email by alert
|
||||||
$height = (!empty($other) && isset($other['data'][3]) && $other['data'][3]) ? $other['data'][3] : 225;
|
$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 {
|
} else {
|
||||||
$graph_seconds = $other['data'];
|
$graph_seconds = $other['data'];
|
||||||
$graph_threshold = 0;
|
$graph_threshold = 0;
|
||||||
$other['data'][1] = 0;
|
$other['data'][1] = 0;
|
||||||
$height = 225;
|
$height = 225;
|
||||||
|
$width = '90%';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_nan($graph_seconds) || $graph_seconds <= 0) {
|
if (is_nan($graph_seconds) || $graph_seconds <= 0) {
|
||||||
|
|
Loading…
Reference in New Issue