mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed the graph for string module data. TICKET: #1749
(cherry picked from commit 5d14e8802df02a0a705a064c32d1be1d6e606dd7)
This commit is contained in:
parent
54c906b4a8
commit
060dd23561
@ -3610,8 +3610,15 @@ function grafico_modulo_string ($agent_module_id, $period, $show_events,
|
|||||||
$count = 0;
|
$count = 0;
|
||||||
$total = 0;
|
$total = 0;
|
||||||
// Read data that falls in the current interval
|
// 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)) {
|
while (isset($data[$j]) &&
|
||||||
$last_known = $data[$j];
|
isset ($data[$j]) !== null &&
|
||||||
|
$data[$j]['utimestamp'] >= $timestamp &&
|
||||||
|
$data[$j]['utimestamp'] <= ($timestamp + $interval)) {
|
||||||
|
|
||||||
|
// ---------------------------------------------------------
|
||||||
|
// FIX TICKET #1749
|
||||||
|
$last_known = $count;
|
||||||
|
// ---------------------------------------------------------
|
||||||
$count++;
|
$count++;
|
||||||
$j++;
|
$j++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user