diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-15 13:09:29 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-15 13:09:29 +0800 |
commit | 1747fb8d710780e60d9af73723da21a80197137b (patch) | |
tree | 678496b7171e6be25ab5be9a6dc25e7925a444b2 /mbbsd/io.c | |
parent | 1680a267a8c73a0e433c67ef7ba89bc60e0e4574 (diff) | |
download | pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.gz pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.bz2 pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.lz pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.xz pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.zst pttbbs-1747fb8d710780e60d9af73723da21a80197137b.zip |
- unify processing clock variable 'now'
- pmore: support time refresh
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3683 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r-- | mbbsd/io.c | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -169,20 +169,12 @@ dogetch(void) } if (len == 0){ -#ifdef OUTTA_TIMER - now = SHM->GV2.e.now; -#else - now = time(0); -#endif + syncnow(); return I_TIMEOUT; } if (i_newfd && FD_ISSET(i_newfd, &readfds)){ -#ifdef OUTTA_TIMER - now = SHM->GV2.e.now; -#else - now = time(0); -#endif + syncnow(); return I_OTHERDATA; } } @@ -209,11 +201,7 @@ dogetch(void) } if (currutmp) { -#ifdef OUTTA_TIMER - now = SHM->GV2.e.now; -#else - now = time(0); -#endif + syncnow(); /* 3 秒內超過兩 byte 才算 active, anti-antiidle. * 不過方向鍵等組合鍵不止 1 byte */ if (now - lastact < 3) |