Changeset 144 for Evidence/Alarm.cc


Ignore:
Timestamp:
Jan 18, 2010, 8:41:37 AM (11 years ago)
Author:
ogrimm
Message:
Core system updates
File:
1 moved

Legend:

Unmodified
Added
Removed
  • Evidence/Alarm.cc

    r142 r144  
    108108        if (strcmp(getInfo()->getName(),"DIS_DNS/Status") == 0) return;
    109109       
    110         // Update State if server is unavailable or with current severity of status 
     110        // Update State: unavailable or current severity of status 
    111111        if (getInfo()->getSize()==strlen(NO_LINK)+1 &&
    112112                strcmp(getInfo()->getString(), NO_LINK)==0) State[i] = 4;
    113113        else {
    114           State[i] = *(getInfo()->getString()+strlen(getInfo()->getString())+2);
     114          State[i] = *(getInfo()->getString()+getInfo()->getSize());
    115115
    116116          // Print message
     
    132132   
    133133  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]);
    135135        Offset += strlen(AlarmSummary+Offset);
    136136        if (State[i] > MasterAlarm) MasterAlarm = State[i];
Note: See TracChangeset for help on using the changeset viewer.