Added a change to boolean charts

This commit is contained in:
Arturo Gonzalez 2017-09-07 16:17:41 +02:00
parent 3d2948d7eb
commit 598b04c2db
1 changed files with 3 additions and 4 deletions

View File

@ -3952,8 +3952,7 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events,
$k++;
}
}
html_debug($data2);
html_debug($data);
$data = array_merge($data2, $data);
$resolution += $previus_datas_cont;
}
@ -3963,7 +3962,7 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events,
for ($i = 0; $i <= $resolution; $i++) {
$timestamp = $datelimit + ($interval * $i);
if ($fullscale && ($resolution > ($config['graph_res'] * 50))) {
if ($fullscale) {
$timestamp = $data[$i]['utimestamp'];
}
@ -4046,7 +4045,7 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events,
}
elseif ($period < SECONDS_1MONTH) {
$time_format = 'M d H\h';
}
}
else {
$time_format = 'M d H\h';
}