From abc7664bf3842d2b89a67b9fab363785c0f2ada5 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 23 Nov 2009 17:57:52 +0000 Subject: [PATCH] 2009-11-23 Ramon Novoa * util/pandora_db.pl: Removed the last call to UnixDate. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2125 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/util/pandora_db.pl | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) 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} ,