Commit Graph

29 Commits

Author SHA1 Message Date
dsl 55a20c5130 Correct boundary conditions for drive table for 'systat io num'.
Correct fix for bin/18823 (which was incomplete and wrong!)
2003-08-12 17:16:53 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
dsl 9f46bb077a Create subwins that end one line from the bottom of the screen even
after the window is resized.
2003-02-24 10:10:00 +00:00
dsl b3467bbf38 When disk activity exceeds 100kB/s divide length of bar by 10s and report
factor on RHS screen.
(approved by christos)
2003-02-01 19:12:30 +00:00
kristerw 5fa174af73 Prevent the "kBps" field from overflowing for values > 1M/s.
From Paul Shupak in PR 18822.
2002-12-29 19:03:56 +00:00
thorpej 9f3eaa5002 Remove extra args from a printf. 2002-12-06 03:13:14 +00:00
mrg 3cf4c73d05 iostat(8) and systat(8) support for separate read/write disk statistics.
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics.  "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
christos 836efa3eb4 PR/18408: Chris Demetriou: Kilo is abbreviated using a small k not a CAPITAL K. 2002-09-25 13:50:39 +00:00
sommerfeld f80c7eebd7 Since the KERN_CP_TIME sysctl reports total clock ticks across all
cpus and hz is measured in ticks per cpu, divide tick count by ncpu to
determine elapsed time since last sample.

Fixes I/O rate deflation observed on multiprocessors.
2002-06-30 00:10:33 +00:00
itojun cc0c94e480 format fix in number mode. PR 16911 2002-06-09 07:14:32 +00:00
augustss 550d5dae5a Make it compile (more vmstat fallout). 2002-01-28 13:20:43 +00:00
cgd d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
simonb 828483a73e Remove extern variables and functions now declared in dkstats.h.
While here, remove 77 (!) unneed #includes.
2000-12-01 02:19:43 +00:00
ad fc3915475d - Add `boot', `run', `time' and `zero' commands to all IP displays. These work
as in the `vmstat' display mode. The default mode is now `time', not `boot'.
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.
2000-07-05 11:03:20 +00:00
mycroft 981f9b7d7b Use hline() and variants in a bunch of places. 2000-06-04 18:29:13 +00:00
thorpej ae67003975 Need to include <sys/sched.h> to get cp_time-related constants. 2000-06-03 21:00:42 +00:00
jwise 4c0fbd4c92 Two things:
1.) fix a bug which caused coredumps when starting with no mode arguments
  2.) move to table-lookup for mode-specific command parsing as well.
      all command matching is now table-driven.
1999-12-20 03:45:01 +00:00
mjl d278ba3869 Enlarge disk names in labels from 3 to 7 to cater for things like raid0. 1999-06-29 18:14:15 +00:00
drochner b2058e2f38 Fix handling of privileges - the gid was given up before dkinit()
was called.
Pass the gid to use for KVM access explicitely to dkinit(), the caller
decides whether to call setgid(getgid()) or not.
1998-07-19 17:47:07 +00:00
mrg 47abaab886 - KNF
- use snprintf
- don't overwrite the keyboard buffer (and make this sized on
  the window size).
1998-07-12 05:59:00 +00:00
lukem 9ccb9cd874 fix .Nm usage, deprecate register, getopt returns -1 not EOF, s/[br]*/[ms]*/ 1997-10-19 23:36:20 +00:00
mrg 5941399374 - some KNF.
- use __RCSID().
- WARNS=1
1997-07-21 07:04:56 +00:00
jtc 8fd3f56f2c Use the new getmaxx and getmaxy macros instead of directly accessing
the private fields of WINDOW.
1997-05-24 00:48:24 +00:00
scottr 25e56cb761 Be explicit about iostat transfer rate by displaying `KBps' instead of
`Kps'.  As per (and noticed by) J.T.
1996-10-25 18:30:52 +00:00
thorpej 1eaf5ee379 New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
1996-05-10 23:16:30 +00:00
ragge d05395713d Removed a couple of #ifdef vax causing systat to malfunction. 1996-03-15 22:19:23 +00:00
mycroft 6480692679 Print out interrupt CPU time. 1995-05-17 15:51:47 +00:00
jtc 2f3cb7ae7d Changed to conform to NetBSD's new RCS Id convention. 1995-01-20 08:51:48 +00:00
jtc 12749a2a84 imported from 44lite 1995-01-20 08:30:50 +00:00