2009-11-23 Ramon Novoa <rnovoa@artica.es>

* 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
This commit is contained in:
ramonn 2009-11-23 17:57:52 +00:00
parent cb8aaf2fe5
commit ca27568ac2
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2009-11-23 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Removed the last call to UnixDate.
2009-11-19 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Added id_alert to alert macros. Could be

View File

@ -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} ,