From 2dd91b88d1ecc22a30d97670aa766ab316874a80 Mon Sep 17 00:00:00 2001 From: scw Date: Tue, 31 May 2005 07:37:36 +0000 Subject: Don't change lastposttime when it's not too strange. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2738 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/board.c b/mbbsd/board.c index ed6274a8..e9ef7a66 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -143,7 +143,10 @@ check_newpost(boardstat_t * ptr) if (B_TOTAL(ptr) == 0) return 0; ftime = B_LASTPOSTTIME(ptr); - if (ftime > now) + + /* 有些 util, 尤其是 innbbsd, 會用到比較新的 time stamp, + * 只要不太誇張就 ok */ + if (ftime > now + 10) ftime = B_LASTPOSTTIME(ptr) = now - 1; tbrc_list = brc_find_record(ptr->bid, &tbrc_num); -- cgit v1.2.3