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:
parent
985fd754fb
commit
ec98f621c8
|
@ -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>
|
||||
|
||||
* modules/pandora_module_regexp.cc: Added support for extended regular
|
||||
|
|
|
@ -103,7 +103,7 @@ pandoraWriteLog (string filename, string line) {
|
|||
string filepath;
|
||||
SYSTEMTIME st;
|
||||
|
||||
GetSystemTime(&st);
|
||||
GetLocalTime(&st);
|
||||
sprintf (str_time, "%d-%02d-%02d %02d:%02d:%02d ", st.wYear, st.wMonth, st.wDay,
|
||||
st.wHour, st.wMinute, st.wSecond);
|
||||
|
||||
|
@ -274,20 +274,20 @@ Pandora::getPandoraAgentVersion () {
|
|||
}
|
||||
|
||||
|
||||
bool
|
||||
bool
|
||||
Pandora::is_enabled (string value) {
|
||||
static string enabled_values[] = {"enabled", "1", "on", "yes", "si", "sí", "ok", "true", ""};
|
||||
int i = 0;
|
||||
|
||||
if (value == "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
while (enabled_values[i] != "") {
|
||||
if (enabled_values[i] == value) {
|
||||
return true;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return false;
|
||||
int i = 0;
|
||||
|
||||
if (value == "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
while (enabled_values[i] != "") {
|
||||
if (enabled_values[i] == value) {
|
||||
return true;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue