Skip to content

Commit

Permalink
Improved summary message on world disconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Feb 15, 2010
1 parent 501967e commit 36b5e23
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions worldsock.cpp
Expand Up @@ -151,21 +151,23 @@ bool bWasClosed = m_pDoc->m_iConnectPhase == eConnectNotConnected;
m_pDoc->StartNewLine (true, 0);
} // end of message in world window wanted

CString strInfo = TFormat ("Received %i line%s, sent %i line%s.",
CString strInfo = TFormat ("--- Received %i line%s, sent %i line%s.",
PLURAL (m_pDoc->m_nTotalLinesReceived),
PLURAL (m_pDoc->m_nTotalLinesSent)
);

m_pDoc->Note (strInfo);

strInfo = TFormat ("Output buffer has %i line%s in it (you have allocated room for %i line%s).",
PLURAL (m_pDoc->m_LineList.GetCount ()),
PLURAL (m_pDoc->m_maxlines)
strInfo = TFormat ("--- Output buffer has %i/%i line%s in it (%.1f%% full).",
m_pDoc->m_LineList.GetCount (),
m_pDoc->m_maxlines,
(m_pDoc->m_LineList.GetCount ()) == 1 ? "" : "s",
(double) m_pDoc->m_LineList.GetCount () / (double) m_pDoc->m_maxlines * 100.0
);

m_pDoc->Note (strInfo);

strInfo = TFormat ("Matched %i trigger%s, %i alias%s, and %i timer%s fired.",
strInfo = TFormat ("--- Matched %i trigger%s, %i alias%s, and %i timer%s fired.",
PLURAL (m_pDoc->m_iTriggersMatchedThisSessionCount),
PLURALES (m_pDoc->m_iAliasesMatchedThisSessionCount),
PLURAL (m_pDoc->m_iTimersFiredThisSessionCount)
Expand Down

0 comments on commit 36b5e23

Please sign in to comment.