iostat.c (121836) | iostat.c (158160) |
---|---|
1/* 2 * Copyright (c) 1998 Kenneth D. Merry. 3 * 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 --- 46 unchanged lines hidden (view full) --- 55 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 */ 60 61#include <sys/cdefs.h> 62 | 1/* 2 * Copyright (c) 1998 Kenneth D. Merry. 3 * 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 --- 46 unchanged lines hidden (view full) --- 55 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 */ 60 61#include <sys/cdefs.h> 62 |
63__FBSDID("$FreeBSD: head/usr.bin/systat/iostat.c 121836 2003-11-01 02:06:02Z tjr $"); | 63__FBSDID("$FreeBSD: head/usr.bin/systat/iostat.c 158160 2006-04-30 04:26:46Z bde $"); |
64 65#ifdef lint 66static const char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93"; 67#endif 68 69#include <sys/param.h> 70#include <sys/sysctl.h> 71#include <sys/resource.h> --- 20 unchanged lines hidden (view full) --- 92static void histogram(long double, int, double); 93static int numlabels(int); 94static int devstats(int, int, int); 95static void stat1(int, int); 96 97WINDOW * 98openiostat() 99{ | 64 65#ifdef lint 66static const char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93"; 67#endif 68 69#include <sys/param.h> 70#include <sys/sysctl.h> 71#include <sys/resource.h> --- 20 unchanged lines hidden (view full) --- 92static void histogram(long double, int, double); 93static int numlabels(int); 94static int devstats(int, int, int); 95static void stat1(int, int); 96 97WINDOW * 98openiostat() 99{ |
100 return (subwin(stdscr, LINES-1-5, 0, 5, 0)); | 100 return (subwin(stdscr, LINES-3-1, 0, MAINWIN_ROW, 0)); |
101} 102 103void 104closeiostat(w) 105 WINDOW *w; 106{ 107 if (w == NULL) 108 return; --- 303 unchanged lines hidden --- | 101} 102 103void 104closeiostat(w) 105 WINDOW *w; 106{ 107 if (w == NULL) 108 return; --- 303 unchanged lines hidden --- |