diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-18 19:48:17 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-18 19:48:17 +0800 |
commit | d6ec2525926e9cbd3afc4b06ccd0300b05ddb301 (patch) | |
tree | 392fb96c328623e76467817faf231711220fcdbd /mbbsd/cache.c | |
parent | 522c7c914b0c8e3400684de08907f9748e42c97b (diff) | |
download | pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.gz pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.bz2 pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.lz pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.xz pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.tar.zst pttbbs-d6ec2525926e9cbd3afc4b06ccd0300b05ddb301.zip |
fix util merging error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1107 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r-- | mbbsd/cache.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 7b26f8f2..945fed88 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -492,7 +492,7 @@ setutmpmode(unsigned int mode) if (HAS_PERM(PERM_LOGUSER)) { char msg[200]; snprintf(msg, sizeof(msg), "%s setutmpmode to %s(%d) at %s", - cuser.userid, modestring(currutmp, 0), mode, Cdate(&now)); + cuser.userid, modestring(currutmp, 0), mode, Cdate(&COMMON_TIME)); log_user(msg); } } @@ -518,8 +518,8 @@ load_fileheader_cache(int bid, char *direct) { int num = getbtotal(bid); int n = num - DIRCACHESIZE + 1; - if (SHM->Bbusystate != 1 && now - SHM->busystate_b[bid - 1] >= 10) { - SHM->busystate_b[bid - 1] = now; + if (SHM->Bbusystate != 1 && COMMON_TIME - SHM->busystate_b[bid - 1] >= 10) { + SHM->busystate_b[bid - 1] = COMMON_TIME; get_records(direct, SHM->dircache[bid - 1], sizeof(fileheader_t), n < 1 ? 1 : n, DIRCACHESIZE); SHM->busystate_b[bid - 1] = 0; @@ -620,7 +620,7 @@ void resolve_boards(void) void touch_boards(void) { - SHM->Btouchtime = now; + SHM->Btouchtime = COMMON_TIME; numboards = -1; resolve_boards(); } @@ -639,10 +639,10 @@ reset_board(int bid) /* XXXbid: from 1 */ if (--bid < 0) return; - if (SHM->Bbusystate || now - SHM->busystate_b[bid] < 10) { + if (SHM->Bbusystate || COMMON_TIME - SHM->busystate_b[bid] < 10) { safe_sleep(1); } else { - SHM->busystate_b[bid] = now; + SHM->busystate_b[bid] = COMMON_TIME; nuser = bcache[bid].nuser; bhdr = bcache; @@ -998,7 +998,7 @@ hbflreload(int bid) } fclose(fp); } - hbfl[0] = now; + hbfl[0] = COMMON_TIME; memcpy(SHM->hbfl[bid], hbfl, sizeof(hbfl)); } |