jwd@ reported via email that the "CacheSize" field reported by "nfsstat -e -s"
would go negative after using the "-z" option to zero out the stats. This patch fixes that by not zeroing out the srvcache_size field for "-z", since it is the size of the cache and not a counter. MFC after: 2 weeks
This commit is contained in:
parent
d8f609a98e
commit
a16cd9c05e
@ -483,7 +483,6 @@ nfssvc_call(struct thread *p, struct nfssvc_args *uap, struct ucred *cred)
|
||||
newnfsstats.srvcache_nonidemdonehits = 0;
|
||||
newnfsstats.srvcache_misses = 0;
|
||||
newnfsstats.srvcache_tcppeak = 0;
|
||||
newnfsstats.srvcache_size = 0;
|
||||
newnfsstats.srvclients = 0;
|
||||
newnfsstats.srvopenowners = 0;
|
||||
newnfsstats.srvopens = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user