Changeset 6769 in ntrip


Ignore:
Timestamp:
Apr 8, 2015, 9:09:57 AM (10 years ago)
Author:
weber
Message:

Failure/outage procedure modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/latencychecker.cpp

    r6768 r6769  
    154154
    155155  _checkTime = QDateTime::currentDateTime();
     156
     157  _begDateOut = _checkTime.toUTC().date().toString("yy-MM-dd"); // weber
     158  _begTimeOut = _checkTime.toUTC().time().toString("hh:mm:ss");
     159
    156160  _decodeSucc = QDateTime::currentDateTime();
    157161
     
    183187                    + ": Failure threshold exceeded, outage since "
    184188                    + _begDateOut + " " + _begTimeOut).toAscii(), true));
     189      emit(newMessage((_staID + ": Begin_Outage "  // weber
     190                    + _begDateOut + " " + _begTimeOut).toAscii(),true));
    185191      callScript(("Begin_Outage "
    186192                    + _begDateOut + " " + _begTimeOut).toAscii());
     
    303309                    + ": Recovery threshold exceeded, outage ended "
    304310                    + _endDateOut + " " + _endTimeOut).toAscii(), true));
    305       if ( _begDateOut != "" && _begTimeOut != "" ) {
    306         callScript(("End_Outage "
    307                       + _endDateOut + " " + _endTimeOut + " Begin was "
    308                       + _begDateOut + " " + _begTimeOut).toAscii());
    309       }
    310       else {
    311         callScript(("End_Outage "
    312                       + _endDateOut + " " + _endTimeOut).toAscii());
    313       }
     311      emit(newMessage((_staID + ": End_Outage "  // weber
     312                    + _endDateOut + " " + _endTimeOut + " Begin was "
     313                    + _begDateOut + " " + _begTimeOut).toAscii(),true));
     314      callScript(("End_Outage "
     315                    + _endDateOut + " " + _endTimeOut + " Begin was "
     316                    + _begDateOut + " " + _begTimeOut).toAscii());
    314317    }
    315318  }
Note: See TracChangeset for help on using the changeset viewer.