version 1.17, 2002/02/16 21:27:54 |
version 1.18, 2002/06/18 00:46:47 |
|
|
|
|
|
|
WINDOW * |
WINDOW * |
openiostat() |
openiostat(void) |
{ |
{ |
return (subwin(stdscr, LINES-1-5, 0, 5, 0)); |
return (subwin(stdscr, LINES-1-5, 0, 5, 0)); |
} |
} |
|
|
void |
void |
closeiostat(w) |
closeiostat(WINDOW *w) |
WINDOW *w; |
|
{ |
{ |
if (w == NULL) |
if (w == NULL) |
return; |
return; |
|
|
} |
} |
|
|
int |
int |
initiostat() |
initiostat(void) |
{ |
{ |
dkinit(1); |
dkinit(1); |
dkreadstats(); |
dkreadstats(); |
|
|
} |
} |
|
|
void |
void |
fetchiostat() |
fetchiostat(void) |
{ |
{ |
if (dk_ndrive == 0) |
if (dk_ndrive == 0) |
return; |
return; |
|
|
#define INSET 10 |
#define INSET 10 |
|
|
void |
void |
labeliostat() |
labeliostat(void) |
{ |
{ |
int row; |
int row; |
|
|
|
|
} |
} |
|
|
static int |
static int |
numlabels(row) |
numlabels(int row) |
int row; |
|
{ |
{ |
int i, col, regions, ndrives; |
int i, col, regions, ndrives; |
|
|
|
|
} |
} |
|
|
static int |
static int |
barlabels(row) |
barlabels(int row) |
int row; |
|
{ |
{ |
int i; |
int i; |
|
|
|
|
|
|
|
|
void |
void |
showiostat() |
showiostat(void) |
{ |
{ |
int i, row, col; |
int i, row, col; |
|
|
dkswap(); |
dkswap(); |
|
|
etime = 0; |
etime = 0; |
for(i = 0; i < CPUSTATES; i++) { |
for (i = 0; i < CPUSTATES; i++) { |
etime += cur.cp_time[i]; |
etime += cur.cp_time[i]; |
} |
} |
if (etime == 0.0) |
if (etime == 0.0) |
|
|
} |
} |
|
|
static int |
static int |
stats(row, col, dn) |
stats(int row, int col, int dn) |
int row, col, dn; |
|
{ |
{ |
double atime, words; |
double atime, words; |
|
|
|
|
} |
} |
|
|
static void |
static void |
stat1(row, o) |
stat1(int row, int o) |
int row, o; |
|
{ |
{ |
int i; |
int i; |
double time; |
double time; |
|
|
} |
} |
|
|
static void |
static void |
histogram(val, colwidth, scale) |
histogram(double val, int colwidth, double scale) |
double val; |
|
int colwidth; |
|
double scale; |
|
{ |
{ |
char buf[10]; |
char buf[10]; |
int k; |
int k; |
|
|
} |
} |
|
|
int |
int |
cmdiostat(cmd, args) |
cmdiostat(char *cmd, char *args) |
char *cmd, *args; |
|
{ |
{ |
|
|
if (prefix(cmd, "secs")) |
if (prefix(cmd, "secs")) |