diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-16 09:11:28 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-16 09:11:28 +0800 |
commit | 7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf (patch) | |
tree | ed66ad94027adbeaa9c056e82e8e3ca9c3e30989 | |
parent | 1cf154c0d7bda6de7ad22a500abc6931497445b1 (diff) | |
download | pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.tar pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.tar.gz pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.tar.bz2 pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.tar.lz pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.tar.xz pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.tar.zst pttbbs-7bca0f51cb4cdbbea5393743ba8c7f3f1e628ebf.zip |
* fix r4600: forgot to set last_time_exceeded.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 3356a548..746f2987 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -369,6 +369,7 @@ signal_xcpu_handler(int sig) // 不用 (time(0) - login_start_time) 來平均, 避免用好幾天之後突然狂吃 cpu 的狀況. if (last_time_exceeded != 0 && time(0) - last_time_exceeded < 86400) give_more_time = false; + last_time_exceeded = time(0); getrlimit(RLIMIT_CPU, &rml); |