diff options
author | phk <phk@FreeBSD.org> | 1995-03-12 01:58:18 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-03-12 01:58:18 +0000 |
commit | 23cf905bbeb90c01f21e448644774c3062fd7660 (patch) | |
tree | 3c56aa05461d22014c85eca9d48c8109f983b74c /usr.bin/systat | |
parent | 8fc888c0b81609378c809bde03b5903140db5caa (diff) | |
download | FreeBSD-src-23cf905bbeb90c01f21e448644774c3062fd7660.zip FreeBSD-src-23cf905bbeb90c01f21e448644774c3062fd7660.tar.gz |
Report the negative hits in the Namei section.
Diffstat (limited to 'usr.bin/systat')
-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 b3db222..00edeb8 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), |