diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-03-08 17:22:25 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-03-08 17:22:25 +0000 |
commit | f5a14311bec936e4bdf4be3d318ff52fe411f75e (patch) | |
tree | a5ced7020b998ee3d682f11557b5b36fb88280b9 /usr.sbin/trpt | |
parent | f8ea2cec55793953df5b6b9806cafaed58b2c5be (diff) |
fix a fallout from tcp timer conversion
Diffstat (limited to 'usr.sbin/trpt')
-rw-r--r-- | usr.sbin/trpt/trpt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c index 82f28086f9c..de132bf04dc 100644 --- a/usr.sbin/trpt/trpt.c +++ b/usr.sbin/trpt/trpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trpt.c,v 1.10 2002/02/17 19:42:40 millert Exp $ */ +/* $OpenBSD: trpt.c,v 1.11 2002/03/08 17:22:24 mickey Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -403,9 +403,10 @@ tcp_trace(act, ostate, atp, tp, ti, req) register int i; for (i = 0; i < TCPT_NTIMERS; i++) { - if (tp->t_timer[i] == 0) + if (timeout_pending(&tp->t_timer[i])) continue; - printf("%s%s=%d", cp, tcptimers[i], tp->t_timer[i]); + printf("%s%s=%d", cp, tcptimers[i], + tp->t_timer[i].to_time); if (i == TCPT_REXMT) printf(" (t_rxtshft=%d)", tp->t_rxtshift); cp = ", "; |