summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-08-18 18:42:21 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-08-18 18:42:21 +0000
commitf659aafa870d70304adfada71bf698379900cf75 (patch)
tree4ba805ddaf2a2c05f2cbccdfe8852020ee7eff3f /usr.sbin
parentabcae05bd2addbfaf44f322a3751b941577bac3f (diff)
nano second resolution is meaningless
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/slaacctl/slaacctl.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.sbin/slaacctl/slaacctl.c b/usr.sbin/slaacctl/slaacctl.c
index 93411908424..5ff230c1228 100644
--- a/usr.sbin/slaacctl/slaacctl.c
+++ b/usr.sbin/slaacctl/slaacctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slaacctl.c,v 1.8 2017/08/18 16:32:06 florian Exp $ */
+/* $OpenBSD: slaacctl.c,v 1.9 2017/08/18 18:42:20 florian Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -218,8 +218,7 @@ show_interface_msg(struct imsg *imsg)
t = localtime(&cei_ra->when.tv_sec);
strftime(whenbuf, sizeof(whenbuf), "%F %T", t);
printf("\tRouter Advertisement from %s\n", hbuf);
- printf("\t\treceived: %s.%09ld; %lld.%09lds ago\n",
- whenbuf, cei_ra->when.tv_nsec, diff.tv_sec, diff.tv_nsec);
+ printf("\t\treceived: %s; %llds ago\n", whenbuf, diff.tv_sec);
printf("\t\tCur Hop Limit: %3u, M: %d, O: %d, Router Lifetime:"
" %5us\n", cei_ra->curhoplimit, cei_ra->managed ? 1: 0,
cei_ra->other ? 1 : 0, cei_ra->router_lifetime);
@@ -285,9 +284,7 @@ show_interface_msg(struct imsg *imsg)
t = localtime(&cei_addr_proposal->when.tv_sec);
strftime(whenbuf, sizeof(whenbuf), "%F %T", t);
- printf("\t\tupdated: %s.%09ld; %lld.%09lds ago\n",
- whenbuf, cei_addr_proposal->when.tv_nsec, diff.tv_sec,
- diff.tv_nsec);
+ printf("\t\tupdated: %s; %llds ago\n", whenbuf, diff.tv_sec);
printf("\t\t%s, %s/%u\n", hbuf, inet_ntop(AF_INET6,
&cei_addr_proposal->prefix, ntopbuf, INET6_ADDRSTRLEN),
cei_addr_proposal->prefix_len);
@@ -315,9 +312,7 @@ show_interface_msg(struct imsg *imsg)
t = localtime(&cei_dfr_proposal->when.tv_sec);
strftime(whenbuf, sizeof(whenbuf), "%F %T", t);
- printf("\t\tupdated: %s.%09ld; %lld.%09lds ago\n",
- whenbuf, cei_dfr_proposal->when.tv_nsec, diff.tv_sec,
- diff.tv_nsec);
+ printf("\t\tupdated: %s; %llds ago\n", whenbuf, diff.tv_sec);
break;
case IMSG_CTL_END: