Skip to content

Commit

Permalink
pktgen: restore nanosec delays
Browse files Browse the repository at this point in the history
Commit fd29cf7 (pktgen: convert to use ktime_t)
inadvertantly converted "delay" parameter from nanosec to microsec.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 5, 2009
1 parent 896a7cf commit 9240d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static ssize_t pktgen_if_write(struct file *file,
if (value == 0x7FFFFFFF)
pkt_dev->delay = ULLONG_MAX;
else
pkt_dev->delay = (u64)value * NSEC_PER_USEC;
pkt_dev->delay = (u64)value;

sprintf(pg_result, "OK: delay=%llu",
(unsigned long long) pkt_dev->delay);
Expand Down

0 comments on commit 9240d71

Please sign in to comment.