diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 65103d2a16..45eeb6c01a 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2009-11-23 Ramon Novoa + + * util/pandora_db.pl: Removed the last call to UnixDate. + 2009-11-19 Sancho Lerena * lib/PandoraFMS/Core.pm: Added id_alert to alert macros. Could be diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index f926dcd7cf..2fe6df75e5 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -226,10 +226,7 @@ sub pandora_compactdb { # Insert interval average value foreach my $key (keys(%value_hash)) { $value_hash{$key} /= $count_hash{$key}; - $stop_date = localtime($stop_utime); - $stop_date = &UnixDate($stop_date, - "%Y-%m-%d %H:%M:%S"); - + $stop_date = strftime ("%Y-%m-%d %H:%M:%S", localtime()); $dbh->do("INSERT INTO tagente_datos (id_agente_modulo, datos, utimestamp) VALUES ($key, $value_hash{$key} ,