Deleted Added
full compact
icmp6.c (228992) icmp6.c (240605)
1/*-
2 * Copyright (c) 1980, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31
1/*-
2 * Copyright (c) 1980, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31
32__FBSDID("$FreeBSD: head/usr.bin/systat/icmp6.c 228992 2011-12-30 11:02:40Z uqs $");
32__FBSDID("$FreeBSD: head/usr.bin/systat/icmp6.c 240605 2012-09-17 13:36:47Z melifaro $");
33
34#ifdef lint
35static char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93";
36#endif
37
38/* From:
39 "Id: mbufs.c,v 1.5 1997/02/24 20:59:03 wollman Exp"
40*/

--- 91 unchanged lines hidden (view full) ---

132domode(struct icmp6stat *ret)
133{
134 const struct icmp6stat *sub;
135 int i, divisor = 1;
136
137 switch(currentmode) {
138 case display_RATE:
139 sub = &oldstat;
33
34#ifdef lint
35static char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93";
36#endif
37
38/* From:
39 "Id: mbufs.c,v 1.5 1997/02/24 20:59:03 wollman Exp"
40*/

--- 91 unchanged lines hidden (view full) ---

132domode(struct icmp6stat *ret)
133{
134 const struct icmp6stat *sub;
135 int i, divisor = 1;
136
137 switch(currentmode) {
138 case display_RATE:
139 sub = &oldstat;
140 divisor = naptime;
140 divisor = (delay > 1000000) ? delay / 1000000 : 1;
141 break;
142 case display_DELTA:
143 sub = &oldstat;
144 break;
145 case display_SINCE:
146 sub = &initstat;
147 break;
148 default:

--- 130 unchanged lines hidden ---
141 break;
142 case display_DELTA:
143 sub = &oldstat;
144 break;
145 case display_SINCE:
146 sub = &initstat;
147 break;
148 default:

--- 130 unchanged lines hidden ---