2011-05-06 Vanessa Gil <vanessa.gil@artica.es>

* win32/pandora.cc: Fixed: Windows agent log and system time are unsynchronized.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2011-05-06 10:38:30 +00:00
parent 985fd754fb
commit ec98f621c8
2 changed files with 19 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2011-05-06 Vanessa Gil <vanessa.gil@artica.es>
* win32/pandora.cc: Fixed: Windows agent log and system time are unsynchronized.
2011-03-08 Ramon Novoa <rnovoa@artica.es> 2011-03-08 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_regexp.cc: Added support for extended regular * modules/pandora_module_regexp.cc: Added support for extended regular

View File

@ -103,7 +103,7 @@ pandoraWriteLog (string filename, string line) {
string filepath; string filepath;
SYSTEMTIME st; SYSTEMTIME st;
GetSystemTime(&st); GetLocalTime(&st);
sprintf (str_time, "%d-%02d-%02d %02d:%02d:%02d ", st.wYear, st.wMonth, st.wDay, sprintf (str_time, "%d-%02d-%02d %02d:%02d:%02d ", st.wYear, st.wMonth, st.wDay,
st.wHour, st.wMinute, st.wSecond); st.wHour, st.wMinute, st.wSecond);
@ -274,20 +274,20 @@ Pandora::getPandoraAgentVersion () {
} }
bool bool
Pandora::is_enabled (string value) { Pandora::is_enabled (string value) {
static string enabled_values[] = {"enabled", "1", "on", "yes", "si", "", "ok", "true", ""}; static string enabled_values[] = {"enabled", "1", "on", "yes", "si", "", "ok", "true", ""};
int i = 0; int i = 0;
if (value == "") { if (value == "") {
return false; return false;
} }
while (enabled_values[i] != "") { while (enabled_values[i] != "") {
if (enabled_values[i] == value) { if (enabled_values[i] == value) {
return true; return true;
} }
i++; i++;
} }
return false; return false;
} }