diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:02:47 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:02:47 +0800 |
commit | 60b3015900838f0afbf3377fc3a75351be510cbe (patch) | |
tree | 4488111bc74655ed46406290bd982fa68c38a8d1 /mbbsd/io.c | |
parent | 5fdde9d65d7664bcff62833304144a26b2f74e30 (diff) | |
download | pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.gz pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.bz2 pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.lz pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.xz pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.zst pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.zip |
statistic
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2651 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r-- | mbbsd/io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,7 @@ void oflush(void) { if (obufsize) { + STATINC(STAT_SYSWRITESOCKET); #ifdef CONVERT write_wrapper(1, outbuf, obufsize); #else @@ -54,6 +55,7 @@ output(const char *s, int len) assert(len<OBUFSIZE); if (obufsize + len > OBUFSIZE) { + STATINC(STAT_SYSWRITESOCKET); #ifdef CONVERT write_wrapper(1, outbuf, obufsize); #else @@ -138,6 +140,7 @@ dogetch(void) /* jochang: modify first argument of select from FD_SETSIZE */ /* since we are only waiting input from fd 0 and i_newfd(>0) */ + STATINC(STAT_SYSSELECT); while ((len = select(i_newfd + 1, &readfds, NULL, NULL, i_top ? &timeout : NULL)) < 0) { if (errno != EINTR) @@ -172,6 +175,7 @@ dogetch(void) do{ #endif + STATINC(STAT_SYSREADSOCKET); #ifdef CONVERT while ((len = read_wrapper(0, inbuf, IBUFSIZE)) <= 0) { #else |