diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-09-18 20:19:51 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-09-18 20:19:51 +0800 |
commit | 513e53948f3d25c0da8f91970dae93e683e9a900 (patch) | |
tree | 06d60e1ccf274ead4287584f79640c957e059515 | |
parent | b75cf7c84b4f4b36395bedbdd68815939935c78a (diff) | |
download | pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.tar pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.tar.gz pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.tar.bz2 pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.tar.lz pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.tar.xz pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.tar.zst pttbbs-513e53948f3d25c0da8f91970dae93e683e9a900.zip |
fix rounding error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5400 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/cal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/cal.c b/pttbbs/mbbsd/cal.c index 76a135a4..0399085e 100644 --- a/pttbbs/mbbsd/cal.c +++ b/pttbbs/mbbsd/cal.c @@ -14,8 +14,7 @@ char *get_restriction_reason( syncnow(); if (firstlogin > (now - limits_regtime * MONTH_SECONDS)) { snprintf(msg, sz_msg, "註冊時間未滿 %d 天(目前%d天)", - limits_regtime * 30, - (now - firstlogin) / MONTH_SECONDS * 30); + limits_regtime * 30, (now - firstlogin) / DAY_SECONDS); return msg; } if (numlogindays / 10 < limits_logins) { |