diff options
-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; |