fixed errors in graphs webproc and keep alive

This commit is contained in:
daniel 2017-12-19 13:13:42 +01:00
parent 32b81ae7aa
commit a335732267
2 changed files with 11 additions and 5 deletions

View File

@ -1461,6 +1461,8 @@ function return_graphtype ($id_module_type) {
case 21:
case 18:
case 9:
case 31:
case 100:
return "boolean";
break;
case 24:

View File

@ -4610,6 +4610,10 @@ function fullscale_data ( &$chart_data, &$chart_extra_data, &$long_index,
$chart_data[$event_date]["alert" . $series_suffix] = 1;
$chart_extra_data[count($chart_data)-1]['alerts'] = implode (',', $alert_ids[$event_date]);
}
else{
$chart_data[$event_date]["event" . $series_suffix] = NULL;
$chart_data[$event_date]["alert" . $series_suffix] = NULL;
}
$chart_data[$event_date]["sum" . $series_suffix] = $previous_data;
if($show_unknown) {