mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Added a change to boolean charts
This commit is contained in:
parent
3d2948d7eb
commit
598b04c2db
@ -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'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4046,7 +4045,7 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events,
|
|||||||
}
|
}
|
||||||
elseif ($period < SECONDS_1MONTH) {
|
elseif ($period < SECONDS_1MONTH) {
|
||||||
$time_format = 'M d H\h';
|
$time_format = 'M d H\h';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$time_format = 'M d H\h';
|
$time_format = 'M d H\h';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user