diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2018-05-22 18:56:34 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2018-05-22 18:56:34 +0000 |
commit | 7c2e8edb17456cb4a47f595d4677b73c78f78fca (patch) | |
tree | 16e05ec8561bd9770f8d43478072e0eea4d870cd /usr.bin/tcpbench | |
parent | edaa4fc85aa6a6f2a7a6371f2282ab83c49cec3c (diff) |
drop unnecessary timerclear; tv_sec & tv_usec are assigned immediately
From Nan Xiao
ok tb@
Diffstat (limited to 'usr.bin/tcpbench')
-rw-r--r-- | usr.bin/tcpbench/tcpbench.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c index 03f906e7e07..de99067f467 100644 --- a/usr.bin/tcpbench/tcpbench.c +++ b/usr.bin/tcpbench/tcpbench.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpbench.c,v 1.55 2018/05/10 14:29:17 benno Exp $ */ +/* $OpenBSD: tcpbench.c,v 1.56 2018/05/22 18:56:33 cheloha Exp $ */ /* * Copyright (c) 2008 Damien Miller <djm@mindrot.org> @@ -253,7 +253,6 @@ set_slice_timer(int on) if (on) { if (evtimer_pending(&mainstats.timer, NULL)) return; - timerclear(&tv); /* XXX Is there a better way to do this ? */ tv.tv_sec = ptb->rflag / 1000; tv.tv_usec = (ptb->rflag % 1000) * 1000; |