summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:20 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:20 +0800
commitba5c3ed9255511d9bad46e04a0aa62c18fb027b3 (patch)
treef56f14bf440bab338fbe7a0b38718d8c121a4e73 /mbbsd/io.c
parent0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9 (diff)
downloadpttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.tar
pttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.tar.gz
pttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.tar.bz2
pttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.tar.lz
pttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.tar.xz
pttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.tar.zst
pttbbs-ba5c3ed9255511d9bad46e04a0aa62c18fb027b3.zip
all use same same of io buffer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2641 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index f2918202..94e2a849 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -1,14 +1,8 @@
/* $Id$ */
#include "bbs.h"
-// XXX why linux use smaller buffer?
-#if defined(linux)
#define OBUFSIZE 2048
#define IBUFSIZE 128
-#else
-#define OBUFSIZE 4096
-#define IBUFSIZE 256
-#endif
static char outbuf[OBUFSIZE], inbuf[IBUFSIZE];
static int obufsize = 0, ibufsize = 0;
@@ -200,6 +194,8 @@ dogetch(void)
#else
now = time(0);
#endif
+ /* 3 秒內超過兩 byte 才算 active, anti-antiidle.
+ * 不過方向鍵等組合鍵不止 1 byte */
if (now - lastact < 3)
currutmp->lastact = now;
lastact = now;