Skip to content

Commit

Permalink
Fix #6: Skip sleep when sending only one frame
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed Nov 2, 2019
1 parent 8c3f64e commit 7aab64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nemesis-functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ int nemesis_send_frame(libnet_t *l, uint32_t *len)
if (bytes != (int)*len)
break;

if (count != 0 && interval >= 0)
if (count > 1 && interval >= 0)
usleep(interval);
} while (--count > 0);

Expand Down

0 comments on commit 7aab64a

Please sign in to comment.