2009-05-28 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_logevent.cc: Fixed the calculation of the newest event offset. Removed module output when no log events are found. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1721 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
aeb42a8430
commit
b012d84a57
|
@ -1,3 +1,9 @@
|
|||
2009-05-28 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* modules/pandora_module_logevent.cc: Fixed the calculation of the
|
||||
newest event offset. Removed module output when no log events are
|
||||
found.
|
||||
|
||||
2009-05-25 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* windows/pandora_wmi.cc, windows/pandora_wmi.h: Added functions for the
|
||||
|
|
|
@ -89,7 +89,6 @@ Pandora_Module_Logevent::run () {
|
|||
|
||||
// No data
|
||||
if (event_list.size () < 1) {
|
||||
this->setOutput ("");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -166,7 +165,7 @@ Pandora_Module_Logevent::discardLogEvents () {
|
|||
// Get the offset of the newest event
|
||||
GetOldestEventLogRecord (this->log_event, &oldest_event);
|
||||
GetNumberOfEventLogRecords (this->log_event, &num_events);
|
||||
newest_event = oldest_event + num_events;
|
||||
newest_event = (oldest_event + num_events) - 1;
|
||||
|
||||
// Initialize the event record buffer
|
||||
pevlr = (EVENTLOGRECORD *)&bBuffer;
|
||||
|
|
Loading…
Reference in New Issue