Skip to content

Commit

Permalink
Changed Debug 'summary' to only show connected duration if connected
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Aug 27, 2011
1 parent a5bfeb9 commit 4055e50
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions world_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,11 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
Note (ts.Format ("Client running for: %Dd %Hh %Mm %Ss"));
ts = CTime::GetCurrentTime() - m_whenWorldStarted;
Note (ts.Format ("World opened for: %Dd %Hh %Mm %Ss"));
ts = CTime::GetCurrentTime() - m_tConnectTime;
Note (ts.Format ("World connected for: %Dd %Hh %Mm %Ss"));
if (m_iConnectPhase == eConnectConnectedToMud)
{
ts = CTime::GetCurrentTime() - m_tConnectTime;
Note (ts.Format ("World connected for: %Dd %Hh %Mm %Ss"));
}

// work out operating system

Expand Down

0 comments on commit 4055e50

Please sign in to comment.