Changeset 144 for Evidence/Alarm.cc
- Timestamp:
- 01/18/10 08:41:37 (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Alarm.cc
r142 r144 108 108 if (strcmp(getInfo()->getName(),"DIS_DNS/Status") == 0) return; 109 109 110 // Update State if server is unavailable or withcurrent severity of status110 // Update State: unavailable or current severity of status 111 111 if (getInfo()->getSize()==strlen(NO_LINK)+1 && 112 112 strcmp(getInfo()->getString(), NO_LINK)==0) State[i] = 4; 113 113 else { 114 State[i] = *(getInfo()->getString()+ strlen(getInfo()->getString())+2);114 State[i] = *(getInfo()->getString()+getInfo()->getSize()); 115 115 116 116 // Print message … … 132 132 133 133 for (int i=0; i<NumServers; i++) { 134 snprintf(AlarmSummary+Offset, SUMMARYSIZE-Offset, "%s: %s \n", Server[i], StateString[State[i]]);134 snprintf(AlarmSummary+Offset, SUMMARYSIZE-Offset, "%s: %s (%d)\n", Server[i], State[i]<=4 ? StateString[State[i]] : "unknown", State[i]); 135 135 Offset += strlen(AlarmSummary+Offset); 136 136 if (State[i] > MasterAlarm) MasterAlarm = State[i];
Note:
See TracChangeset
for help on using the changeset viewer.