diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-14 22:55:09 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-14 22:55:09 +0800 |
commit | 67932d15f92cd605eadca081ee6ac9285f2719dc (patch) | |
tree | 8f6a40e3e6248254ba67f60932b2e5ee587f3cc2 | |
parent | 6f1ed1ac8b551d6b8cec352e4ddf0c7e2b7cf755 (diff) | |
download | pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.tar pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.tar.gz pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.tar.bz2 pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.tar.lz pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.tar.xz pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.tar.zst pttbbs-67932d15f92cd605eadca081ee6ac9285f2719dc.zip |
fix the fault while buying ex-email.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2511 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/cache.c | 11 | ||||
-rw-r--r-- | mbbsd/cal.c | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 786db7aa..c29f3a42 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -555,11 +555,6 @@ reload_bcache(void) } memset(SHM->lastposttime, 0, MAX_BOARD * sizeof(time4_t)); memset(SHM->total, 0, MAX_BOARD * sizeof(int)); - /* 等所有 boards 資料更新後再設定 uptime */ - SHM->Buptime = SHM->Btouchtime; - log_usies("CACHE", "reload bcache"); - SHM->Bbusystate = 0; - sort_bcache(); for( i = 0 ; i < MAX_BOARD ; ++i ) if( SHM->bcache[i].brdname[0] ){ @@ -573,6 +568,12 @@ reload_bcache(void) n = 5; SHM->n_bottom[i] = n; } + + /* 等所有 boards 資料更新後再設定 uptime */ + SHM->Buptime = SHM->Btouchtime; + log_usies("CACHE", "reload bcache"); + SHM->Bbusystate = 0; + sort_bcache(); } void resolve_boards(void) diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 0e2a48c0..1c997836 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -291,8 +291,8 @@ p_exmail() { char ans[4], buf[200]; int n; - - assert(MAX_EXKEEPMAIL < (1<< (sizeof(cuser.exmailbox)*8-1) )); +// Ptt: what is it for? +// assert(MAX_EXKEEPMAIL < (1<< (sizeof(cuser.exmailbox)*8-1) )); if (cuser.exmailbox >= MAX_EXKEEPMAIL) { vmsg("容量最多增加 %d 封,不能再買了。", MAX_EXKEEPMAIL); return 0; |