Skip to content

Commit 36b5e23

Browse files
committed
Improved summary message on world disconnect.
1 parent 501967e commit 36b5e23

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

worldsock.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,23 @@ bool bWasClosed = m_pDoc->m_iConnectPhase == eConnectNotConnected;
151151
m_pDoc->StartNewLine (true, 0);
152152
} // end of message in world window wanted
153153

154-
CString strInfo = TFormat ("Received %i line%s, sent %i line%s.",
154+
CString strInfo = TFormat ("--- Received %i line%s, sent %i line%s.",
155155
PLURAL (m_pDoc->m_nTotalLinesReceived),
156156
PLURAL (m_pDoc->m_nTotalLinesSent)
157157
);
158158

159159
m_pDoc->Note (strInfo);
160160

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

166168
m_pDoc->Note (strInfo);
167169

168-
strInfo = TFormat ("Matched %i trigger%s, %i alias%s, and %i timer%s fired.",
170+
strInfo = TFormat ("--- Matched %i trigger%s, %i alias%s, and %i timer%s fired.",
169171
PLURAL (m_pDoc->m_iTriggersMatchedThisSessionCount),
170172
PLURALES (m_pDoc->m_iAliasesMatchedThisSessionCount),
171173
PLURAL (m_pDoc->m_iTimersFiredThisSessionCount)

0 commit comments

Comments
 (0)