mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the graph for string module data. TICKET: #1749
This commit is contained in:
parent
0509d950ae
commit
9ff4ba1958
@ -3612,8 +3612,15 @@ function grafico_modulo_string ($agent_module_id, $period, $show_events,
|
||||
$count = 0;
|
||||
$total = 0;
|
||||
// Read data that falls in the current interval
|
||||
while (isset($data[$j]) && isset ($data[$j]) !== null && $data[$j]['utimestamp'] >= $timestamp && $data[$j]['utimestamp'] <= ($timestamp + $interval)) {
|
||||
$last_known = $data[$j];
|
||||
while (isset($data[$j]) &&
|
||||
isset ($data[$j]) !== null &&
|
||||
$data[$j]['utimestamp'] >= $timestamp &&
|
||||
$data[$j]['utimestamp'] <= ($timestamp + $interval)) {
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// FIX TICKET #1749
|
||||
$last_known = $count;
|
||||
// ---------------------------------------------------------
|
||||
$count++;
|
||||
$j++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user