diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-09-16 18:37:49 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-09-16 18:37:49 +0800 |
commit | 3812b85165b7faad95087b2a9fa155735d21622a (patch) | |
tree | 63ffd2eabefff61f7957d045cb5a9933d0cfaf71 | |
parent | 1388d795c968e54b91d9fb0f78c86c2587cb0c57 (diff) | |
download | pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.tar pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.tar.gz pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.tar.bz2 pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.tar.lz pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.tar.xz pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.tar.zst pttbbs-3812b85165b7faad95087b2a9fa155735d21622a.zip |
Change default angel expire time to 180d.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5872 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/daemon/angelbeats/angelbeats.c | 2 | ||||
-rw-r--r-- | pttbbs/util/angel.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pttbbs/daemon/angelbeats/angelbeats.c b/pttbbs/daemon/angelbeats/angelbeats.c index c25248c9..8f35ca80 100644 --- a/pttbbs/daemon/angelbeats/angelbeats.c +++ b/pttbbs/daemon/angelbeats/angelbeats.c @@ -53,7 +53,7 @@ static int debug = 0; // same as expire length #ifndef ANGELBEATS_INACTIVE_TIME -#define ANGELBEATS_INACTIVE_TIME ( 120 * DAY_SECONDS ) +#define ANGELBEATS_INACTIVE_TIME ( 180 * DAY_SECONDS ) #endif // Lower priority for re-assigning masters in given period. diff --git a/pttbbs/util/angel.c b/pttbbs/util/angel.c index 8366a7c6..8d58df75 100644 --- a/pttbbs/util/angel.c +++ b/pttbbs/util/angel.c @@ -93,7 +93,7 @@ int buildMasterInfo(AngelRecord *rec, int num_recs) { angel->masters_month++; if (now - user.timeplayangel < DAY_SECONDS * 90) angel->masters_quater++; - if (now - user.timeplayangel < DAY_SECONDS * 120) + if (now - user.timeplayangel < DAY_SECONDS * 180) angel->masters_period++; } fclose(fp); @@ -118,7 +118,7 @@ int generateReport(FILE *fp, AngelRecord *rec, int num_recs, int delete_file) { fprintf(fp, "瞷ぱㄏΤ %d :\n", num_recs); fprintf(fp, - " (计场计 | 7ぱず | 30ぱず | 90ぱず | 120ぱ\n" + " (计场计 | 7ぱず | 30ぱず | 90ぱず | 180ぱ\n" " 臘计(赣琿丁ずΤ肚癳癟倒ヴぱㄏ)\n" " 猔種ヘ玡臘度参璸Τ癳癟礚猭眔ぱㄏ\n" " 琌本 - ┮叫皌┾琩挡狦蝶︳)\n"); |