diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-14 23:20:42 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-14 23:20:42 +0800 |
commit | 803a415be1d5b7bb52462ceb76da4bb2f72b8585 (patch) | |
tree | 0d66fc399c84fafc97ae54fd1860c4f378992486 /mbbsd | |
parent | 1ef6abcf621d5476a76aaef98b5f9282104fd9f2 (diff) | |
download | pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.tar pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.tar.gz pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.tar.bz2 pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.tar.lz pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.tar.xz pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.tar.zst pttbbs-803a415be1d5b7bb52462ceb76da4bb2f72b8585.zip |
fix idle timeout
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@169 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: io.c,v 1.13 2002/05/14 15:08:47 ptt Exp $ */ +/* $Id: io.c,v 1.14 2002/05/14 15:20:42 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -177,7 +177,7 @@ static int dogetch() { now= time(0); if(now-currutmp->lastact<3) anti_robot=now; - else if(!anti_robot || now-anti_robot < IDLE_TIMEOUT) + else if(!anti_robot || now-anti_robot < 5*60) { currutmp->lastact = now; } |