2006-12-05 Esteban Sanchez <estebans@artica.es>

* pandora_windows_service.cc: Fixed a bug when the agent name is not
        configured and should be getted from the system.

        * bin/PandoraAgent.exe: Updated to last commit.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
esanchezm 2006-12-05 12:37:36 +00:00
parent c5bae05311
commit 871e7e5935
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-12-05 Esteban Sanchez <estebans@artica.es>
* pandora_windows_service.cc: Fixed a bug when the agent name is not
configured and should be getted from the system.
* bin/PandoraAgent.exe: Updated to last commit.
2006-12-05 Raul Mateos <raulofpandora@gmail.com>
* installer/Pandora_Windows_Agent-1.2.0-Setup.exe: Updated installer.

View File

@ -132,10 +132,10 @@ Pandora_Windows_Service::getXmlHeader () {
agent = new TiXmlElement ("agent_data");
value = conf->getValue ("agent_name");
agent->SetAttribute ("agent_name", value);
if (value == "") {
value = Pandora_Windows_Info::getSystemName ();
}
agent->SetAttribute ("agent_name", value);
agent->SetAttribute ("version", getPandoraAgentVersion ());