From 703aa3ac447c3618aead6fdeb9359c6222f8502c Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 29 Jan 2013 15:08:41 +0000 Subject: Fix wrong day calculation... git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5781 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/angel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pttbbs/mbbsd/angel.c b/pttbbs/mbbsd/angel.c index 964dd1bf..a2705d51 100644 --- a/pttbbs/mbbsd/angel.c +++ b/pttbbs/mbbsd/angel.c @@ -385,9 +385,9 @@ angel_log_order_song(const char *angel_nick) { char angel_exp[STRLEN]; syncnow(); - if (cuser.timesetangel > now) + if (cuser.timesetangel <= now) snprintf(angel_exp, sizeof(angel_exp), - "%d¤Ñ", (cuser.timesetangel - now) / DAY_SECONDS + 1); + "%d¤Ñ", (now - cuser.timesetangel) / DAY_SECONDS + 1); else strlcpy(angel_exp, "«Ü¤[", sizeof(angel_exp)); -- cgit v1.2.3