Make this more readable.

This commit is contained in:
JoelKatz
2012-08-14 15:59:25 -07:00
parent 89c7c26c2f
commit 36fb085114

View File

@@ -678,15 +678,15 @@ void NetworkOPs::setMode(OperatingMode om)
if (mMode == om) return;
if ((om >= omCONNECTED) && (mMode == omDISCONNECTED))
mConnectTime = boost::posix_time::second_clock::universal_time();
Log l((om < mMode) ? lsWARNING : lsINFO);
Log lg((om < mMode) ? lsWARNING : lsINFO);
if (om == omDISCONNECTED)
l << "STATE->Disconnected";
lg << "STATE->Disconnected";
else if (om == omCONNECTED)
l << "STATE->Connected";
lg << "STATE->Connected";
else if (om == omTRACKING)
l << "STATE->Tracking";
lg << "STATE->Tracking";
else
l << "STATE->Full";
lg << "STATE->Full";
mMode = om;
}