Skip to content

Commit 03a14ab

Browse files
danielttdavem330
authored andcommitted
pktgen: fix errata in show results
The units in show_results in pktgen were not correct. The results are in usec but it was displayed nsec. Reported-by: Jong-won Lee <[email protected]> Signed-off-by: Daniel Turull <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6c91afe commit 03a14ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/pktgen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3321,7 +3321,7 @@ static void show_results(struct pktgen_dev *pkt_dev, int nr_frags)
33213321
pkt_dev->started_at);
33223322
ktime_t idle = ns_to_ktime(pkt_dev->idle_acc);
33233323

3324-
p += sprintf(p, "OK: %llu(c%llu+d%llu) nsec, %llu (%dbyte,%dfrags)\n",
3324+
p += sprintf(p, "OK: %llu(c%llu+d%llu) usec, %llu (%dbyte,%dfrags)\n",
33253325
(unsigned long long)ktime_to_us(elapsed),
33263326
(unsigned long long)ktime_to_us(ktime_sub(elapsed, idle)),
33273327
(unsigned long long)ktime_to_us(idle),

0 commit comments

Comments
 (0)