[icinga-checkins] icinga.org: icinga-reports/mluebben/default: Fix little issue in method insertAvailEventLogEntry()

git at icinga.org git at icinga.org
Wed Apr 27 12:05:22 CEST 2011


Module: icinga-reports
Branch: mluebben/default
Commit: bdb9bf4451c2746f7cb046aa4369b9c08b51efff
URL:    https://git.icinga.org/?p=icinga-reports.git;a=commit;h=bdb9bf4451c2746f7cb046aa4369b9c08b51efff

Author: Michael Luebben <michael_luebben at web.de>
Date:   Wed Apr 27 12:05:12 2011 +0200

Fix little issue in method insertAvailEventLogEntry()

---

 AvailReportParser/Modules/Reporting/DBHandler.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/AvailReportParser/Modules/Reporting/DBHandler.pm b/AvailReportParser/Modules/Reporting/DBHandler.pm
index bbd3366..bbf3d95 100755
--- a/AvailReportParser/Modules/Reporting/DBHandler.pm
+++ b/AvailReportParser/Modules/Reporting/DBHandler.pm
@@ -18,7 +18,7 @@ DBHandler.pm
 
 =head1 Version
 
-Version 0.0.3
+Version 0.0.4
 
 =head1 DESCRIPTION
 
@@ -429,7 +429,7 @@ sub insertAvailEventLogEntry {
 	my $sth;
 	my $insertID;
 
-	$sth = $self->{dbh}->prepare("INSERT INTO ".$table_avail_logentries." (report_id, start_time, stop_time, duration_days, duration_hours, duration_minutes, duration_seconds, state_id, statetypes_id, state_information) VALUES (".$reportID.", '".$startTime."', '".$stopTime."', ".$durationDays.", ".$durationHours.", ".$durationMinutes.", ".$durationSeconds.", ".$stateID.", ".$stateTypeID.", '".$stateInformation."')");
+	$sth = $self->{dbh}->prepare("INSERT INTO ".$table_avail_logentries." (report_id, start_time, stop_time, duration_days, duration_hours, duration_minutes, duration_seconds, state_id, statetype_id, state_information) VALUES (".$reportID.", '".$startTime."', '".$stopTime."', ".$durationDays.", ".$durationHours.", ".$durationMinutes.", ".$durationSeconds.", ".$stateID.", ".$stateTypeID.", '".$stateInformation."')");
 	$sth->execute();
 	$insertID = $self->{dbh}->{ q{mysql_insertid} };
 	$sth->finish;





More information about the icinga-checkins mailing list