summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index a96138c5..a9edf6f3 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -76,7 +76,7 @@ int u_cancelbadpost(void)
{vmsg("請登出其他視窗, 否則不受理."); return 0;}
passwd_query(usernum, &cuser);
- day = (cuser.timeremovebadpost - now) / 86400 + 180;
+ day = 180 - (now - cuser.timeremovebadpost ) / 86400;
if(day>0 && day<=180)
{
vmsgf("每 180 天才能申請一次, 還剩 %d 天.", day);