1998-09-15 08:16:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1998 Kenneth D. Merry.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
1999-08-28 01:08:13 +00:00
|
|
|
* $FreeBSD$
|
1998-09-15 08:16:45 +00:00
|
|
|
*/
|
1994-05-27 12:33:43 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1980, 1992, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the University of
|
|
|
|
* California, Berkeley and its contributors.
|
|
|
|
* 4. Neither the name of the University nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef lint
|
|
|
|
static char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93";
|
|
|
|
#endif not lint
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
1998-09-15 08:16:45 +00:00
|
|
|
#include <sys/dkstat.h>
|
2001-03-23 03:58:25 +00:00
|
|
|
#include <sys/sysctl.h>
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <nlist.h>
|
|
|
|
#include <paths.h>
|
1998-09-15 08:16:45 +00:00
|
|
|
#include <devstat.h>
|
1998-10-08 09:56:10 +00:00
|
|
|
#include <err.h>
|
1994-05-27 12:33:43 +00:00
|
|
|
#include "systat.h"
|
|
|
|
#include "extern.h"
|
1998-10-08 09:56:10 +00:00
|
|
|
#include "devs.h"
|
1994-05-27 12:33:43 +00:00
|
|
|
|
1998-09-15 08:16:45 +00:00
|
|
|
struct statinfo cur, last;
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
static int linesperregion;
|
|
|
|
static double etime;
|
|
|
|
static int numbers = 0; /* default display bar graphs */
|
1998-09-15 08:16:45 +00:00
|
|
|
static int kbpt = 0; /* default ms/seek shown */
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
static int barlabels __P((int));
|
1998-09-15 08:16:45 +00:00
|
|
|
static void histogram __P((long double, int, double));
|
1994-05-27 12:33:43 +00:00
|
|
|
static int numlabels __P((int));
|
1998-09-15 08:16:45 +00:00
|
|
|
static int devstats __P((int, int, int));
|
1994-05-27 12:33:43 +00:00
|
|
|
static void stat1 __P((int, int));
|
|
|
|
|
|
|
|
WINDOW *
|
|
|
|
openiostat()
|
|
|
|
{
|
|
|
|
return (subwin(stdscr, LINES-1-5, 0, 5, 0));
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
closeiostat(w)
|
|
|
|
WINDOW *w;
|
|
|
|
{
|
|
|
|
if (w == NULL)
|
|
|
|
return;
|
|
|
|
wclear(w);
|
|
|
|
wrefresh(w);
|
|
|
|
delwin(w);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
initiostat()
|
|
|
|
{
|
2001-03-23 03:58:25 +00:00
|
|
|
if ((num_devices = getnumdevs()) < 0)
|
1998-09-15 08:16:45 +00:00
|
|
|
return(0);
|
|
|
|
|
|
|
|
cur.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
|
|
|
|
last.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
|
|
|
|
bzero(cur.dinfo, sizeof(struct devinfo));
|
|
|
|
bzero(last.dinfo, sizeof(struct devinfo));
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This value for maxshowdevs (100) is bogus. I'm not sure exactly
|
|
|
|
* how to calculate it, though.
|
|
|
|
*/
|
|
|
|
if (dsinit(100, &cur, &last, NULL) != 1)
|
|
|
|
return(0);
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
return(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fetchiostat()
|
|
|
|
{
|
1998-09-15 08:16:45 +00:00
|
|
|
struct devinfo *tmp_dinfo;
|
2000-11-25 03:47:36 +00:00
|
|
|
size_t len;
|
|
|
|
int err;
|
|
|
|
|
|
|
|
len = sizeof(cur.cp_time);
|
|
|
|
err = sysctlbyname("kern.cp_time", &cur.cp_time, &len, NULL, 0);
|
|
|
|
if (err || len != sizeof(cur.cp_time)) {
|
|
|
|
perror("kern.cp_time");
|
|
|
|
exit (1);
|
|
|
|
}
|
1998-09-15 08:16:45 +00:00
|
|
|
tmp_dinfo = last.dinfo;
|
|
|
|
last.dinfo = cur.dinfo;
|
|
|
|
cur.dinfo = tmp_dinfo;
|
|
|
|
|
|
|
|
last.busy_time = cur.busy_time;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Here what we want to do is refresh our device stats.
|
|
|
|
* getdevs() returns 1 when the device list has changed.
|
|
|
|
* If the device list has changed, we want to go through
|
|
|
|
* the selection process again, in case a device that we
|
|
|
|
* were previously displaying has gone away.
|
|
|
|
*/
|
|
|
|
switch (getdevs(&cur)) {
|
|
|
|
case -1:
|
|
|
|
errx(1, "%s", devstat_errbuf);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
cmdiostat("refresh", NULL);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
num_devices = cur.dinfo->numdevs;
|
|
|
|
generation = cur.dinfo->generation;
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#define INSET 10
|
|
|
|
|
|
|
|
void
|
|
|
|
labeliostat()
|
|
|
|
{
|
|
|
|
int row;
|
|
|
|
|
|
|
|
row = 0;
|
|
|
|
wmove(wnd, row, 0); wclrtobot(wnd);
|
|
|
|
mvwaddstr(wnd, row++, INSET,
|
|
|
|
"/0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100");
|
|
|
|
mvwaddstr(wnd, row++, 0, "cpu user|");
|
|
|
|
mvwaddstr(wnd, row++, 0, " nice|");
|
|
|
|
mvwaddstr(wnd, row++, 0, " system|");
|
1994-12-03 10:06:40 +00:00
|
|
|
mvwaddstr(wnd, row++, 0, "interrupt|");
|
1994-05-27 12:33:43 +00:00
|
|
|
mvwaddstr(wnd, row++, 0, " idle|");
|
|
|
|
if (numbers)
|
|
|
|
row = numlabels(row + 1);
|
|
|
|
else
|
|
|
|
row = barlabels(row + 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
numlabels(row)
|
|
|
|
int row;
|
|
|
|
{
|
|
|
|
int i, col, regions, ndrives;
|
1998-09-15 08:16:45 +00:00
|
|
|
char tmpstr[10];
|
1994-05-27 12:33:43 +00:00
|
|
|
|
1998-09-15 08:16:45 +00:00
|
|
|
#define COLWIDTH 17
|
1999-08-30 08:18:09 +00:00
|
|
|
#define DRIVESPERLINE ((wnd->_maxx - INSET) / COLWIDTH)
|
1998-09-15 08:16:45 +00:00
|
|
|
for (ndrives = 0, i = 0; i < num_devices; i++)
|
|
|
|
if (dev_select[i].selected)
|
1994-05-27 12:33:43 +00:00
|
|
|
ndrives++;
|
|
|
|
regions = howmany(ndrives, DRIVESPERLINE);
|
|
|
|
/*
|
|
|
|
* Deduct -regions for blank line after each scrolling region.
|
|
|
|
*/
|
1999-08-30 08:18:09 +00:00
|
|
|
linesperregion = (wnd->_maxy - row - regions) / regions;
|
1994-05-27 12:33:43 +00:00
|
|
|
/*
|
|
|
|
* Minimum region contains space for two
|
|
|
|
* label lines and one line of statistics.
|
|
|
|
*/
|
|
|
|
if (linesperregion < 3)
|
|
|
|
linesperregion = 3;
|
1996-06-11 16:18:58 +00:00
|
|
|
col = INSET;
|
1998-09-15 08:16:45 +00:00
|
|
|
for (i = 0; i < num_devices; i++)
|
|
|
|
if (dev_select[i].selected) {
|
1999-08-30 08:18:09 +00:00
|
|
|
if (col + COLWIDTH >= wnd->_maxx - INSET) {
|
1996-06-11 16:18:58 +00:00
|
|
|
col = INSET, row += linesperregion + 1;
|
1999-08-30 08:18:09 +00:00
|
|
|
if (row > wnd->_maxy - (linesperregion + 1))
|
1994-05-27 12:33:43 +00:00
|
|
|
break;
|
|
|
|
}
|
1998-09-15 08:16:45 +00:00
|
|
|
sprintf(tmpstr, "%s%d", dev_select[i].device_name,
|
|
|
|
dev_select[i].unit_number);
|
|
|
|
mvwaddstr(wnd, row, col + 4, tmpstr);
|
|
|
|
mvwaddstr(wnd, row + 1, col, " KB/t tps MB/s ");
|
1994-05-27 12:33:43 +00:00
|
|
|
col += COLWIDTH;
|
|
|
|
}
|
|
|
|
if (col)
|
|
|
|
row += linesperregion + 1;
|
|
|
|
return (row);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
barlabels(row)
|
|
|
|
int row;
|
|
|
|
{
|
|
|
|
int i;
|
1998-09-15 08:16:45 +00:00
|
|
|
char tmpstr[10];
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
mvwaddstr(wnd, row++, INSET,
|
2000-06-01 08:26:13 +00:00
|
|
|
"/0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100");
|
1998-09-15 08:16:45 +00:00
|
|
|
linesperregion = 2 + kbpt;
|
|
|
|
for (i = 0; i < num_devices; i++)
|
|
|
|
if (dev_select[i].selected) {
|
1999-08-30 08:18:09 +00:00
|
|
|
if (row > wnd->_maxy - linesperregion)
|
1994-05-27 12:33:43 +00:00
|
|
|
break;
|
1998-09-15 08:16:45 +00:00
|
|
|
sprintf(tmpstr, "%s%d", dev_select[i].device_name,
|
|
|
|
dev_select[i].unit_number);
|
|
|
|
mvwprintw(wnd, row++, 0, "%-5.5s MB/s|",
|
|
|
|
tmpstr);
|
1994-05-27 12:33:43 +00:00
|
|
|
mvwaddstr(wnd, row++, 0, " tps|");
|
1998-09-15 08:16:45 +00:00
|
|
|
if (kbpt)
|
|
|
|
mvwaddstr(wnd, row++, 0, " KB/t|");
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
return (row);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
showiostat()
|
|
|
|
{
|
|
|
|
register long t;
|
|
|
|
register int i, row, col;
|
|
|
|
|
1998-09-15 08:16:45 +00:00
|
|
|
#define X(fld) t = cur.fld[i]; cur.fld[i] -= last.fld[i]; last.fld[i] = t
|
1994-05-27 12:33:43 +00:00
|
|
|
etime = 0;
|
|
|
|
for(i = 0; i < CPUSTATES; i++) {
|
|
|
|
X(cp_time);
|
1998-09-15 08:16:45 +00:00
|
|
|
etime += cur.cp_time[i];
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
if (etime == 0.0)
|
|
|
|
etime = 1.0;
|
1994-12-03 10:06:40 +00:00
|
|
|
etime /= hertz;
|
1994-05-27 12:33:43 +00:00
|
|
|
row = 1;
|
1994-12-03 10:06:40 +00:00
|
|
|
for (i = 0; i < CPUSTATES; i++)
|
1994-05-27 12:33:43 +00:00
|
|
|
stat1(row++, i);
|
|
|
|
if (!numbers) {
|
|
|
|
row += 2;
|
1998-09-15 08:16:45 +00:00
|
|
|
for (i = 0; i < num_devices; i++)
|
|
|
|
if (dev_select[i].selected) {
|
1999-08-30 08:18:09 +00:00
|
|
|
if (row > wnd->_maxy - linesperregion)
|
1994-05-27 12:33:43 +00:00
|
|
|
break;
|
1998-09-15 08:16:45 +00:00
|
|
|
row = devstats(row, INSET, i);
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
1996-06-11 16:18:58 +00:00
|
|
|
col = INSET;
|
1994-05-27 12:33:43 +00:00
|
|
|
wmove(wnd, row + linesperregion, 0);
|
|
|
|
wdeleteln(wnd);
|
|
|
|
wmove(wnd, row + 3, 0);
|
|
|
|
winsertln(wnd);
|
1998-09-15 08:16:45 +00:00
|
|
|
for (i = 0; i < num_devices; i++)
|
|
|
|
if (dev_select[i].selected) {
|
1999-08-30 08:18:09 +00:00
|
|
|
if (col + COLWIDTH >= wnd->_maxx - INSET) {
|
1996-06-11 16:18:58 +00:00
|
|
|
col = INSET, row += linesperregion + 1;
|
1999-08-30 08:18:09 +00:00
|
|
|
if (row > wnd->_maxy - (linesperregion + 1))
|
1994-05-27 12:33:43 +00:00
|
|
|
break;
|
|
|
|
wmove(wnd, row + linesperregion, 0);
|
|
|
|
wdeleteln(wnd);
|
|
|
|
wmove(wnd, row + 3, 0);
|
|
|
|
winsertln(wnd);
|
|
|
|
}
|
1998-09-15 08:16:45 +00:00
|
|
|
(void) devstats(row + 3, col, i);
|
1994-05-27 12:33:43 +00:00
|
|
|
col += COLWIDTH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
1998-09-15 08:16:45 +00:00
|
|
|
devstats(row, col, dn)
|
1994-05-27 12:33:43 +00:00
|
|
|
int row, col, dn;
|
|
|
|
{
|
1998-09-15 08:16:45 +00:00
|
|
|
long double transfers_per_second;
|
|
|
|
long double kb_per_transfer, mb_per_second;
|
|
|
|
long double busy_seconds;
|
|
|
|
int di;
|
|
|
|
|
|
|
|
di = dev_select[dn].position;
|
|
|
|
|
|
|
|
busy_seconds = compute_etime(cur.busy_time, last.busy_time);
|
|
|
|
|
|
|
|
if (compute_stats(&cur.dinfo->devices[di], &last.dinfo->devices[di],
|
|
|
|
busy_seconds, NULL, NULL, NULL,
|
|
|
|
&kb_per_transfer, &transfers_per_second,
|
|
|
|
&mb_per_second, NULL, NULL) != 0)
|
|
|
|
errx(1, "%s", devstat_errbuf);
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
if (numbers) {
|
1998-09-15 08:16:45 +00:00
|
|
|
mvwprintw(wnd, row, col, " %5.2Lf %3.0Lf %5.2Lf ",
|
|
|
|
kb_per_transfer, transfers_per_second,
|
|
|
|
mb_per_second);
|
|
|
|
return(row);
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
wmove(wnd, row++, col);
|
2000-06-01 08:49:46 +00:00
|
|
|
histogram(mb_per_second, 50, .5);
|
1994-05-27 12:33:43 +00:00
|
|
|
wmove(wnd, row++, col);
|
2000-06-01 08:49:46 +00:00
|
|
|
histogram(transfers_per_second, 50, .5);
|
1998-09-15 08:16:45 +00:00
|
|
|
if (kbpt) {
|
1994-05-27 12:33:43 +00:00
|
|
|
wmove(wnd, row++, col);
|
2000-06-01 08:49:46 +00:00
|
|
|
histogram(kb_per_transfer, 50, .5);
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
1998-09-15 08:16:45 +00:00
|
|
|
|
|
|
|
return(row);
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
stat1(row, o)
|
|
|
|
int row, o;
|
|
|
|
{
|
|
|
|
register int i;
|
|
|
|
double time;
|
|
|
|
|
|
|
|
time = 0;
|
|
|
|
for (i = 0; i < CPUSTATES; i++)
|
1998-09-15 08:16:45 +00:00
|
|
|
time += cur.cp_time[i];
|
1994-05-27 12:33:43 +00:00
|
|
|
if (time == 0.0)
|
|
|
|
time = 1.0;
|
|
|
|
wmove(wnd, row, INSET);
|
|
|
|
#define CPUSCALE 0.5
|
1998-09-15 08:16:45 +00:00
|
|
|
histogram(100.0 * cur.cp_time[o] / time, 50, CPUSCALE);
|
1994-05-27 12:33:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
histogram(val, colwidth, scale)
|
1998-09-15 08:16:45 +00:00
|
|
|
long double val;
|
1994-05-27 12:33:43 +00:00
|
|
|
int colwidth;
|
|
|
|
double scale;
|
|
|
|
{
|
|
|
|
char buf[10];
|
|
|
|
register int k;
|
|
|
|
register int v = (int)(val * scale) + 0.5;
|
|
|
|
|
|
|
|
k = MIN(v, colwidth);
|
|
|
|
if (v > colwidth) {
|
1998-09-15 08:16:45 +00:00
|
|
|
snprintf(buf, sizeof(buf), "%5.2Lf", val);
|
1994-05-27 12:33:43 +00:00
|
|
|
k -= strlen(buf);
|
|
|
|
while (k--)
|
|
|
|
waddch(wnd, 'X');
|
|
|
|
waddstr(wnd, buf);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
while (k--)
|
|
|
|
waddch(wnd, 'X');
|
|
|
|
wclrtoeol(wnd);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
cmdiostat(cmd, args)
|
|
|
|
char *cmd, *args;
|
|
|
|
{
|
|
|
|
|
1998-09-15 08:16:45 +00:00
|
|
|
if (prefix(cmd, "kbpt"))
|
|
|
|
kbpt = !kbpt;
|
1994-05-27 12:33:43 +00:00
|
|
|
else if (prefix(cmd, "numbers"))
|
|
|
|
numbers = 1;
|
|
|
|
else if (prefix(cmd, "bars"))
|
|
|
|
numbers = 0;
|
1998-09-15 08:16:45 +00:00
|
|
|
else if (!dscmd(cmd, args, 100, &cur))
|
1994-05-27 12:33:43 +00:00
|
|
|
return (0);
|
|
|
|
wclear(wnd);
|
|
|
|
labeliostat();
|
|
|
|
refresh();
|
|
|
|
return (1);
|
|
|
|
}
|