summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-17 09:31:19 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-17 09:31:19 +0800
commit1a01e24e24c955add377cbead5fe04dcace41eeb (patch)
tree7bb109b7ca9d0656ed2ee80db0155fcad45f8e57 /daemon
parente0557a3e3aacfb670dc988d1107407b98abb9aea (diff)
downloadpttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.tar
pttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.tar.gz
pttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.tar.bz2
pttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.tar.lz
pttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.tar.xz
pttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.tar.zst
pttbbs-1a01e24e24c955add377cbead5fe04dcace41eeb.zip
* refine AYT report messages
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4646 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon')
-rw-r--r--daemon/logind/logind.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c
index 2e0c1d70..ef7e43e0 100644
--- a/daemon/logind/logind.c
+++ b/daemon/logind/logind.c
@@ -579,10 +579,18 @@ _telnet_send_ayt_cb(void *ayt_arg, int fd)
char buf[64];
assert(conn);
- snprintf(buf, sizeof(buf), " fd:%u,ack:%u(-%u) \r\n",
- g_opened_fd,
- (unsigned int)g_ack_queue_size,
- (unsigned int)g_ack_queue_reuse );
+ if (!g_async_ack)
+ {
+ snprintf(buf, sizeof(buf), " (#%d)fd:%u \r\n",
+ g_retry_times, g_opened_fd);
+ }
+ else
+ {
+ snprintf(buf, sizeof(buf), " (#%d)fd:%u,ack:%u(-%u) \r\n",
+ g_retry_times, g_opened_fd,
+ (unsigned int)g_ack_queue_size,
+ (unsigned int)g_ack_queue_reuse );
+ }
_buff_write(conn, buf, strlen(buf));
}
#endif