Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop

This commit is contained in:
m-lopez-f 2015-02-03 13:33:22 +01:00
commit c11dfdba45
1 changed files with 11 additions and 4 deletions

View File

@ -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++;
}