diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-03-12 01:58:18 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-03-12 01:58:18 +0000 |
| commit | dc0b7482de40a5f221cd1bb451e8e16cd6754ace (patch) | |
| tree | 3c56aa05461d22014c85eca9d48c8109f983b74c | |
| parent | c3f4fea40cef5c7940463edb14aa4081619c36fa (diff) | |
Notes
| -rw-r--r-- | usr.bin/systat/vmstat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index b3db2225632f..00edeb80f432 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -321,7 +321,7 @@ labelkre() mvprintw(GRAPHROW + 1, GRAPHCOL, "| | | | | | | | | | |"); - mvprintw(NAMEIROW, NAMEICOL, "Namei Sys-cache Proc-cache"); + mvprintw(NAMEIROW, NAMEICOL, "Namei Name-cache Proc-cache"); mvprintw(NAMEIROW + 1, NAMEICOL, " Calls hits %% hits %%"); mvprintw(DISKROW, DISKCOL, "Discs"); @@ -407,7 +407,7 @@ showkre() Z(ncs_goodhits); Z(ncs_badhits); Z(ncs_miss); Z(ncs_long); Z(ncs_pass2); Z(ncs_2passes); s.nchcount = nchtotal.ncs_goodhits + nchtotal.ncs_badhits + - nchtotal.ncs_miss + nchtotal.ncs_long; + nchtotal.ncs_miss + nchtotal.ncs_long + nchtotal.ncs_neghits; if (state == TIME) s1.nchcount = s.nchcount; @@ -493,9 +493,11 @@ showkre() dinfo(i, ++c); } putint(s.nchcount, NAMEIROW + 2, NAMEICOL, 9); - putint(nchtotal.ncs_goodhits, NAMEIROW + 2, NAMEICOL + 9, 9); + putint((nchtotal.ncs_goodhits + nchtotal.ncs_neghits), + NAMEIROW + 2, NAMEICOL + 9, 9); #define nz(x) ((x) ? (x) : 1) - putfloat(nchtotal.ncs_goodhits * 100.0 / nz(s.nchcount), + putfloat((nchtotal.ncs_goodhits+nchtotal.ncs_neghits) * + 100.0 / nz(s.nchcount), NAMEIROW + 2, NAMEICOL + 19, 4, 0, 1); putint(nchtotal.ncs_pass2, NAMEIROW + 2, NAMEICOL + 23, 9); putfloat(nchtotal.ncs_pass2 * 100.0 / nz(s.nchcount), |
