diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-24 18:05:22 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-24 18:05:22 +0000 |
commit | e6673071212596bc54fb5bffff72b0c3a8275071 (patch) | |
tree | 6207658dc2c8b323c34e06c5fe4d3def08c8f0fa /test/rctest.c | |
parent | ec29dc02fc6b9147660590382e3806076217d2d5 (diff) |
Change delay to milliseconds and check count
Diffstat (limited to 'test/rctest.c')
-rw-r--r-- | test/rctest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rctest.c b/test/rctest.c index ebcc4c07..1f26c4c7 100644 --- a/test/rctest.c +++ b/test/rctest.c @@ -351,7 +351,7 @@ static void send_mode(int sk) exit(1); } - if (num_frames && delay && !(seq % count)) + if (num_frames && delay && count && !(seq % count)) usleep(delay); } @@ -409,7 +409,7 @@ static void usage(void) "\t[-L seconds] enabled SO_LINGER option\n" "\t[-N num] number of frames to send\n" "\t[-C num] send num frames before delay (default = 1)\n" - "\t[-D seconds] delay after sending num frames (default = 0)\n" + "\t[-D milliseconds] delay after sending num frames (default = 0)\n" "\t[-A] request authentication\n" "\t[-E] request encryption\n" "\t[-S] secure connection\n" @@ -506,7 +506,7 @@ int main(int argc ,char *argv[]) break; case 'D': - delay = atoi(optarg) * 1000000; + delay = atoi(optarg) * 1000; break; default: |