2008-06-18 Ramon Novoa <rnovoa@artica.es>

* win32/modules/pandora_module_logevent.cc: Now returns "empty" data
          when no data is available.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2008-06-18 11:15:07 +00:00
parent b07bfee644
commit cba2e4d3a0
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-06-18 Ramon Novoa <rnovoa@artica.es>
* win32/modules/pandora_module_logevent.cc: Now returns "empty" data
when no data is available.
2008-06-13 Ramon Novoa <rnovoa@artica.es>
* win32/bin/PandoraAgent.exe: Updated to r857.

View File

@ -52,7 +52,12 @@ Pandora_Module_Logevent::run () {
}
Pandora_Wmi::getEventList (this->source, this->type, this->pattern, this->getInterval (), event_list);
if (event_list.size () < 1) {
this->setOutput ("");
return;
}
for(event = event_list.begin (); event != event_list.end(); ++event) {
this->setOutput (*event);
}