When accessing the sysctl vfs.nfs.iodmax, don't report errors as being

from accessing vfs.nfs.iodmin.
This commit is contained in:
Brooks Davis 2005-04-07 20:37:04 +00:00
parent 338465d521
commit 3994793281
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144757

View File

@ -119,7 +119,7 @@ main(int argc, char *argv[])
len = sizeof iodmax;
error = sysctlbyname("vfs.nfs.iodmax", &iodmax, &len, NULL, 0);
if (error < 0)
err(1, "sysctlbyname(\"vfs.nfs.iodmin\")");
err(1, "sysctlbyname(\"vfs.nfs.iodmax\")");
/* Catch the case where we're lowering num_servers below iodmin */
if (iodmin > num_servers) {
iodmin = num_servers;