mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Merge branch '1198-errors-in-boolean-chart-fourth-time-dev' into 'develop'
Added a change to boolean charts See merge request !799
This commit is contained in:
commit
191d6bb0d4
@ -3952,8 +3952,7 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events,
|
|||||||
$k++;
|
$k++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
html_debug($data2);
|
|
||||||
html_debug($data);
|
|
||||||
$data = array_merge($data2, $data);
|
$data = array_merge($data2, $data);
|
||||||
$resolution += $previus_datas_cont;
|
$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++) {
|
for ($i = 0; $i <= $resolution; $i++) {
|
||||||
$timestamp = $datelimit + ($interval * $i);
|
$timestamp = $datelimit + ($interval * $i);
|
||||||
|
|
||||||
if ($fullscale && ($resolution > ($config['graph_res'] * 50))) {
|
if ($fullscale) {
|
||||||
$timestamp = $data[$i]['utimestamp'];
|
$timestamp = $data[$i]['utimestamp'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user