Changeset 181
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Alarm.cc
r174 r181 57 57 58 58 // Copy original list of servers to observe 59 char *ServerNames = GetConfig( SERVER_NAME "servers");59 char *ServerNames = GetConfig("servers"); 60 60 ServerList = new char [strlen(ServerNames)+1]; 61 61 strcpy(ServerList, ServerNames); … … 162 162 163 163 Alarm.UpdateAlarmSummary(); 164 sleep(atoi(Alarm.GetConfig( SERVER_NAME "period")));164 sleep(atoi(Alarm.GetConfig("period"))); 165 165 } 166 166 } -
Evidence/DColl.cc
r174 r181 105 105 106 106 // Request configuration data 107 DataDir = GetConfig( SERVER_NAME "datadir");108 SizeUpdateDelay = atoi(GetConfig( SERVER_NAME "sizeupdate"));109 HistDir = GetConfig( SERVER_NAME "histdir");107 DataDir = GetConfig("datadir"); 108 SizeUpdateDelay = atoi(GetConfig("sizeupdate")); 109 HistDir = GetConfig("histdir"); 110 110 111 111 // Open log file 112 char *Logname = GetConfig( SERVER_NAME "logfile");112 char *Logname = GetConfig("logfile"); 113 113 if ((LogFile = fopen(Logname, "a")) == NULL) { 114 114 State(FATAL, "Could not open log file '%s' (%s)", Logname, strerror(errno)); … … 128 128 129 129 // Count how many minimum change value regular expressions are present 130 char *Change = GetConfig( SERVER_NAME "items");130 char *Change = GetConfig("items"); 131 131 RegExCount = 0; 132 132 char *Token = strtok(Change, "\t ");
Note:
See TracChangeset
for help on using the changeset viewer.