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:
parent
a7eac0541b
commit
abc7664bf3
|
@ -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>
|
2009-11-19 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Added id_alert to alert macros. Could be
|
* lib/PandoraFMS/Core.pm: Added id_alert to alert macros. Could be
|
||||||
|
|
|
@ -226,10 +226,7 @@ sub pandora_compactdb {
|
||||||
# Insert interval average value
|
# Insert interval average value
|
||||||
foreach my $key (keys(%value_hash)) {
|
foreach my $key (keys(%value_hash)) {
|
||||||
$value_hash{$key} /= $count_hash{$key};
|
$value_hash{$key} /= $count_hash{$key};
|
||||||
$stop_date = localtime($stop_utime);
|
$stop_date = strftime ("%Y-%m-%d %H:%M:%S", localtime());
|
||||||
$stop_date = &UnixDate($stop_date,
|
|
||||||
"%Y-%m-%d %H:%M:%S");
|
|
||||||
|
|
||||||
$dbh->do("INSERT INTO tagente_datos (id_agente_modulo,
|
$dbh->do("INSERT INTO tagente_datos (id_agente_modulo,
|
||||||
datos, utimestamp) VALUES
|
datos, utimestamp) VALUES
|
||||||
($key, $value_hash{$key} ,
|
($key, $value_hash{$key} ,
|
||||||
|
|
Loading…
Reference in New Issue