diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-16 01:37:12 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-16 01:37:12 +0800 |
commit | c46fffb99342eee4d4eeec4e8a4707a294f0b3b7 (patch) | |
tree | d55327167136fd6f9ee6d10b51875a6fb1455d5e /util | |
parent | 5d8da62f46b60e5c4f6f86f08603e3f4286c86dc (diff) | |
download | pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.tar pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.tar.gz pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.tar.bz2 pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.tar.lz pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.tar.xz pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.tar.zst pttbbs-c46fffb99342eee4d4eeec4e8a4707a294f0b3b7.zip |
add some comments for ofo water mode.
set nkwbd default to 5, 5
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1484 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/shmctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/shmctl.c b/util/shmctl.c index fad17e36..001fd4eb 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -496,19 +496,19 @@ int bBMC(int argc, char **argv) #ifdef NOKILLWATERBALL int nkwbd(int argc, char **argv) { - int ch, sleeptime = 20, timeout = 20; + int ch, sleeptime = 5, timeout = 5; while( (ch = getopt(argc, argv, "s:t:h")) != -1 ) switch( ch ){ case 's': - if( (sleeptime = atoi(optarg)) < 10 ){ - fprintf(stderr, "sleeptime < 10? set to 20"); - sleeptime = 20; + if( (sleeptime = atoi(optarg)) <= 0 ){ + fprintf(stderr, "sleeptime <= 0? set to 5"); + sleeptime = 5; } break; case 't': - if( (timeout = atoi(optarg)) < 10 ){ - fprintf(stderr, "timeout < 10? set to 20"); + if( (timeout = atoi(optarg)) <= 0 ){ + fprintf(stderr, "timeout <= 0? set to 5"); timeout = 20; } break; |