version 1.24, 2001/06/27 06:16:49 |
version 1.25, 2001/08/28 05:17:55 |
|
|
#define VMSTATCOL 48 |
#define VMSTATCOL 48 |
#define GRAPHROW 10 /* uses 3 rows and 51 cols */ |
#define GRAPHROW 10 /* uses 3 rows and 51 cols */ |
#define GRAPHCOL 0 |
#define GRAPHCOL 0 |
#define NAMEIROW 14 /* uses 3 rows and 38 cols */ |
#define NAMEIROW 14 /* uses 3 rows and 49 cols */ |
#define NAMEICOL 0 |
#define NAMEICOL 0 |
#define DISKROW 18 /* uses 5 rows and 50 cols (for 9 drives) */ |
#define DISKROW 18 /* uses 5 rows and 50 cols (for 9 drives) */ |
#define DISKCOL 0 |
#define DISKCOL 0 |
|
|
mvprintw(GRAPHROW + 1, GRAPHCOL, |
mvprintw(GRAPHROW + 1, GRAPHCOL, |
"| | | | | | | | | | |"); |
"| | | | | | | | | | |"); |
|
|
mvprintw(NAMEIROW, NAMEICOL, "Namei Sys-cache Proc-cache"); |
mvprintw(NAMEIROW, NAMEICOL, |
|
"Namei Sys-cache Proc-cache No-cache"); |
mvprintw(NAMEIROW + 1, NAMEICOL, |
mvprintw(NAMEIROW + 1, NAMEICOL, |
" Calls hits %% hits %%"); |
" Calls hits %% hits %% miss %%"); |
mvprintw(DISKROW, DISKCOL, "Discs"); |
mvprintw(DISKROW, DISKCOL, "Discs"); |
mvprintw(DISKROW + 1, DISKCOL, "seeks"); |
mvprintw(DISKROW + 1, DISKCOL, "seeks"); |
mvprintw(DISKROW + 2, DISKCOL, "xfers"); |
mvprintw(DISKROW + 2, DISKCOL, "xfers"); |
|
|
dinfo(i, ++c); |
dinfo(i, ++c); |
} |
} |
putint(s.nchcount, NAMEIROW + 2, NAMEICOL, 9); |
putint(s.nchcount, NAMEIROW + 2, NAMEICOL, 9); |
putint(nchtotal.ncs_goodhits, NAMEIROW + 2, NAMEICOL + 9, 9); |
putint(nchtotal.ncs_goodhits, NAMEIROW + 2, NAMEICOL + 10, 8); |
#define nz(x) ((x) ? (x) : 1) |
#define nz(x) ((x) ? (x) : 1) |
putfloat(nchtotal.ncs_goodhits * 100.0 / nz(s.nchcount), |
putfloat(nchtotal.ncs_goodhits * 100.0 / nz(s.nchcount), |
NAMEIROW + 2, NAMEICOL + 19, 4, 0, 1); |
NAMEIROW + 2, NAMEICOL + 19, 4, 0, 1); |
putint(nchtotal.ncs_pass2, NAMEIROW + 2, NAMEICOL + 23, 9); |
putint(nchtotal.ncs_pass2, NAMEIROW + 2, NAMEICOL + 24, 7); |
putfloat(nchtotal.ncs_pass2 * 100.0 / nz(s.nchcount), |
putfloat(nchtotal.ncs_pass2 * 100.0 / nz(s.nchcount), |
NAMEIROW + 2, NAMEICOL + 34, 4, 0, 1); |
NAMEIROW + 2, NAMEICOL + 33, 4, 0, 1); |
|
putint(nchtotal.ncs_miss - nchtotal.ncs_pass2, |
|
NAMEIROW + 2, NAMEICOL + 38, 7); |
|
putfloat((nchtotal.ncs_miss - nchtotal.ncs_pass2) * |
|
100.0 / nz(s.nchcount), NAMEIROW + 2, NAMEICOL + 45, 4, 0, 1); |
#undef nz |
#undef nz |
} |
} |
|
|