summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-04-06 11:43:12 +0000
committerphk <phk@FreeBSD.org>1998-04-06 11:43:12 +0000
commit45ced96af00d374f2f52ea8cdd3bad9445fbc0af (patch)
tree4dfd4cd1f4eee1dc65f5c28652916ae2a1b4e160 /sys/net/if_tun.c
parentfe94bc82888551c452b52083bbfe584035456bdc (diff)
downloadFreeBSD-src-45ced96af00d374f2f52ea8cdd3bad9445fbc0af.zip
FreeBSD-src-45ced96af00d374f2f52ea8cdd3bad9445fbc0af.tar.gz
Use getmicrotime() for if_lastchange, 10msec is plenty precision.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index b80fdd5..f6097a7 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -229,7 +229,7 @@ tuninit(unit)
TUNDEBUG("%s%d: tuninit\n", ifp->if_name, ifp->if_unit);
ifp->if_flags |= IFF_UP | IFF_RUNNING;
- microtime(&ifp->if_lastchange);
+ getmicrotime(&ifp->if_lastchange);
for (ifa = ifp->if_addrhead.tqh_first; ifa;
ifa = ifa->ifa_link.tqe_next) {
OpenPOWER on IntegriCloud