diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-11-28 13:53:40 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-11-28 13:53:40 +0800 |
commit | 7cf80f7bde48a9959f8a94f2c695ba0c76aec82c (patch) | |
tree | 52bebd064aa36b6d60bac9a30ea7ad0f6aa82090 /include | |
parent | 734dc49b3822a58300a4f8aa1356c02984cf88d9 (diff) | |
download | pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.gz pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.bz2 pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.lz pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.xz pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.zst pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.zip |
MAX_MOVIE is changed from 999 to 500 (reload_pttcache loads only 500 items)
Those hard coded "500" are changed to MAX_MOVIE now.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3449 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 2 | ||||
-rw-r--r-- | include/pttstruct.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index cd62633e..322aa3ca 100644 --- a/include/config.h +++ b/include/config.h @@ -160,7 +160,7 @@ #define MAX_FRIEND (256) /* 載入 cache 之最多朋友數目 */ #define MAX_REJECT (32) /* 載入 cache 之最多壞人數目 */ #define MAX_MSGS (10) /* 水球(熱訊)忍耐上限 */ -#define MAX_MOVIE (999) /* 最多動態看板數 */ +#define MAX_MOVIE (500) /* 最多動態看板數 */ #define MAX_MOVIE_SECTION (10) /* 最多動態看板類別 */ #define MAX_ITEMS (1000) /* 一個目錄最多有幾項 */ #define MAX_HISTORY (12) /* 動態看板保持 12 筆歷史記錄 */ diff --git a/include/pttstruct.h b/include/pttstruct.h index 537bbcfd..0bd0e0df 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -562,6 +562,8 @@ typedef struct { /* pttcache */ char notes[MAX_MOVIE][200*11]; + // 有人反應 200 不夠用,將來可能會提高 + char this_is_unused_and_should_be_removed_later[499][200*11]; char gap_18[sizeof(int)]; char today_is[20]; int n_notes[MAX_MOVIE_SECTION]; /* 一節中有幾個 看板 */ |