summaryrefslogtreecommitdiffstats
path: root/test/l2test.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-03-24 18:05:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-03-24 18:05:22 +0000
commite6673071212596bc54fb5bffff72b0c3a8275071 (patch)
tree6207658dc2c8b323c34e06c5fe4d3def08c8f0fa /test/l2test.c
parentec29dc02fc6b9147660590382e3806076217d2d5 (diff)
Change delay to milliseconds and check count
Diffstat (limited to 'test/l2test.c')
-rw-r--r--test/l2test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/l2test.c b/test/l2test.c
index 9a23480a..fc966bd3 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -586,7 +586,7 @@ static void send_mode(int sk)
exit(1);
}
- if (num_frames && delay && !(seq % count))
+ if (num_frames && delay && count && !(seq % count))
usleep(delay);
}
@@ -618,7 +618,7 @@ static void senddump_mode(int sk)
exit(1);
}
- if (num_frames && delay && !(seq % count))
+ if (num_frames && delay && count && !(seq % count))
usleep(delay);
}
@@ -695,7 +695,7 @@ static void usage(void)
"\t[-N num] send num frames (default = infinite)\n"
"\t[-L seconds] enable SO_LINGER\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[-R] reliable mode\n"
"\t[-G] use connectionless channel (datagram)\n"
"\t[-F] enable flow control\n"
@@ -791,7 +791,7 @@ int main(int argc ,char *argv[])
break;
case 'D':
- delay = atoi(optarg) * 1000000;
+ delay = atoi(optarg) * 1000;
break;
case 'R':