Changeset 13844 for trunk/FACT++/src/ratescan.cc
- Timestamp:
- 05/23/12 19:32:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratescan.cc
r13838 r13844 42 42 }; 43 43 44 DimServiceInfoListImp fNetwork;45 46 44 DimVersion fDim; 47 45 DimState fDimFTM; … … 224 222 } 225 223 226 const State GetState(const DimState &s) const227 {228 return fNetwork.GetState(s.name(), s.state());229 }230 231 void PrintState(const DimState &state) const232 {233 const State rc = GetState(state);234 235 Out() << state.time().GetAsStr("%H:%M:%S.%f").substr(0, 12) << " - ";236 Out() << kBold << state.name() << ": ";237 if (rc.index==-3)238 {239 Out() << kReset << "Offline" << endl;240 return;241 }242 if (rc.index==-2)243 Out() << state.state();244 else245 Out() << rc.name << "[" << rc.index << "]";246 Out() << kReset << " - " << kBlue << rc.comment << endl;247 }248 249 224 int Print() const 250 225 { 251 Out() << fDim.time().GetAsStr("%H:%M:%S.%f").substr(0, 12) << " - "; 252 Out() << kBold << "DIM_DNS: " << fDim.version() << endl; 253 254 PrintState(fDimFTM); 226 Out() << fDim << endl; 227 Out() << fDimFTM << endl; 255 228 256 229 return GetCurrentState();
Note:
See TracChangeset
for help on using the changeset viewer.