diff options
-rw-r--r-- | pttbbs/mbbsd/angel.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/angel.c b/pttbbs/mbbsd/angel.c index 6a42981e..b796bdbb 100644 --- a/pttbbs/mbbsd/angel.c +++ b/pttbbs/mbbsd/angel.c @@ -514,6 +514,9 @@ int a_angelreport() { rpt.total_online_angels, rpt.total_active_angels); + if (!rpt.inactive_days) + rpt.inactive_days = 120; + prints( "\t 絬ぱㄏい局Τ臘计ヘ程ぶ %d 程 %d \n" "\t 絬秨Μぱㄏい臘程ぶ %d 程 %d \n" @@ -522,13 +525,14 @@ int a_angelreport() { rpt.max_masters_of_online_angels, rpt.min_masters_of_active_angels, rpt.max_masters_of_active_angels, - rpt.inactive_days ? rpt.inactive_days : 120); - if (!rpt.inactive_days) - rpt.inactive_days = 120; - int days = (now - 1361168062) / 86400 + 1; + rpt.inactive_days); +#ifdef ANGELBEATS_ACTIVE_MASTER_RECORD_START + int days = (now - ANGELBEATS_ACTIVE_MASTER_RECORD_START) / DAY_SECONDS; + days += 1; if (days < rpt.inactive_days) prints("\t (パ臘琌穝糤参璸兜ヘ" "ヘ玡龟悔Τ %d ぱず计沮)\n", days); +#endif prints("\n\t " ANSI_COLOR(1;33) "矗眶眤计沮Τ眤╬癘魁" "ヴ種そ穦臩ō\n" ANSI_RESET); |