diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-09 00:18:04 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-09 00:18:04 +0800 |
commit | 085c9a93cf63c5511f28005deb06f8ba25c8b667 (patch) | |
tree | 2552708384e0221efed674c44ff03c83a4a54346 /util/shmctl.c | |
parent | 8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a (diff) | |
download | pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.tar pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.tar.gz pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.tar.bz2 pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.tar.lz pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.tar.xz pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.tar.zst pttbbs-085c9a93cf63c5511f28005deb06f8ba25c8b667.zip |
add "cool down" feature for boards.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/shmctl.c')
-rw-r--r-- | util/shmctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/shmctl.c b/util/shmctl.c index 077566ab..0686786a 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -419,6 +419,9 @@ inline void utmpsort(int sortall) if( nusers[i] > 8 && (top < HOTBOARDCACHE || nusers[i] > last) && IS_BOARD(&SHM->bcache[i]) && +#ifdef USE_COOLDOWN + !(SHM->bcache[i].brdattr & BRD_COOLDOWN) && +#endif IS_OPENBRD(&SHM->bcache[i]) ){ for( k = top - 1 ; k >= 0 ; --k ) if(HBcache[k]>=0 && |