summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-10-17 00:36:45 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-10-17 00:36:45 +0800
commit7e01ec5f042a6fd0897cf0ce00d3ba8815064dea (patch)
tree2e25787872697c3560601ea658585b146461a0d8 /include
parent2bf8739a0abe5032097d3ddb8d1fd0da8256afa8 (diff)
downloadpttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.tar
pttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.tar.gz
pttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.tar.bz2
pttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.tar.lz
pttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.tar.xz
pttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.tar.zst
pttbbs-7e01ec5f042a6fd0897cf0ce00d3ba8815064dea.zip
* save shm memory
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3583 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/pttstruct.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 64aac0ac..40f73cd4 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -495,7 +495,7 @@ typedef struct keeploc_t {
} keeploc_t;
#define VALID_USHM_ENTRY(X) ((X) >= 0 && (X) < USHM_SIZE)
-#define USHM_SIZE ((MAX_ACTIVE)*10/9)
+#define USHM_SIZE ((MAX_ACTIVE)*41/40)
/* USHM_SIZE 比 MAX_ACTIVE 大是為了防止檢查人數上限時, 又同時衝進來
* 會造成找 shm 空位的無窮迴圈.
* 又, 因 USHM 中用 hash, 空間稍大時效率較好. */