diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-31 15:37:36 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-31 15:37:36 +0800 |
commit | 2dd91b88d1ecc22a30d97670aa766ab316874a80 (patch) | |
tree | 6e62e1707ae7e862bba47c5be02beb0c3259422a /mbbsd | |
parent | 6269d4e1eb46dae61c687611e46de32201821635 (diff) | |
download | pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.tar pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.tar.gz pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.tar.bz2 pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.tar.lz pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.tar.xz pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.tar.zst pttbbs-2dd91b88d1ecc22a30d97670aa766ab316874a80.zip |
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
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |