diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-06-12 19:24:03 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-06-12 19:24:03 +0000 |
commit | bd9a6a7bd8883c607a3a41ff3d7a340ae6ae1a1b (patch) | |
tree | 6ebe98dacd2c92fee24dae4befe75f43c543920b /sys/net/ppp_tty.c | |
parent | 4c0a0894d83b94eda7553ed2cb571bc104d42272 (diff) | |
download | FreeBSD-src-bd9a6a7bd8883c607a3a41ff3d7a340ae6ae1a1b.zip FreeBSD-src-bd9a6a7bd8883c607a3a41ff3d7a340ae6ae1a1b.tar.gz |
Since the updates to ifnet.if_lastchange are so rare (relatively
speaking), go for the extra accuracy and call microtime() to get
the current time.
Pointed Out By: bde
Diffstat (limited to 'sys/net/ppp_tty.c')
-rw-r--r-- | sys/net/ppp_tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index 5915310d..c9a395b 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -70,7 +70,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: ppp_tty.c,v 1.5 1996/01/24 21:09:25 phk Exp $ */ +/* $Id: ppp_tty.c,v 1.6 1996/06/10 23:07:36 gpalmer Exp $ */ /* from Id: ppp_tty.c,v 1.3 1995/08/16 01:36:40 paulus Exp */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ @@ -248,7 +248,7 @@ pppopen(dev, tp) sc->sc_outm = NULL; pppgetm(sc); sc->sc_if.if_flags |= IFF_RUNNING; - sc->sc_if.if_lastchange = time; + microtime(&sc->sc_if.if_lastchange); sc->sc_if.if_baudrate = tp->t_ospeed; tp->t_sc = (caddr_t) sc; |