From 1d0b904818d30cef57280a1b76c1d2f35348a03f Mon Sep 17 00:00:00 2001 From: vgilc Date: Thu, 15 Sep 2011 15:30:13 +0000 Subject: [PATCH] 2011-09-15 Vanessa Gil * win32/pandora_windows_service.cc: Fixed problem sending xml file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 4 ++++ pandora_agents/win32/pandora_windows_service.cc | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index b083a1bfca..58fcc1f6a8 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,7 @@ +2011-09-15 Vanessa Gil + + * win32/pandora_windows_service.cc: Fixed problem sending xml file. + 2011-09-08 Vanessa Gil * win32/bin/pandora_agent.conf: Added example about module preconditions. diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index 652b2657df..88ddc6d73e 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -1424,6 +1424,15 @@ Pandora_Windows_Service::pandora_run_broker (string config) { this->modules->goNext (); } } + +this->elapsed_transfer_time += this->interval; + +if (this->elapsed_transfer_time >= this->transfer_interval) { + this->elapsed_transfer_time = 0; + if (!server_addr.empty ()) { + this->sendXml (this->modules); + } +} return; }