From df0480d12a56ccfc325d996defd9902eb052a724 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 15 Feb 2018 11:19:44 +0100 Subject: [PATCH] Fixed dbuncompress short unknown events --- pandora_console/include/functions_db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 357835d822..9acd28b98e 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -851,7 +851,7 @@ function db_uncompress_module_data($id_agente_modulo, $tstart = false, $tend = f $tmp_data["utimestamp"] = $current_unknown["time_to"]; //Add order to avoid usort missorder in same utimestamp data cells $tmp_data["order"] = 2; - $i = count($data_slices) - 1; + $i = count($data_slices); while ($i >= 0) { if($data_slices[$i]['utimestamp'] <= $current_unknown["time_to"]){ $tmp_data["datos"] =