aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/nfsiod
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2005-04-07 20:37:04 +0000
committerBrooks Davis <brooks@FreeBSD.org>2005-04-07 20:37:04 +0000
commit399479328143e215807bf0009e216e21fb8dda80 (patch)
tree3e6cbd6d8728d275238f7beb3075c9844c6b9326 /sbin/nfsiod
parent338465d521c8e91570d1028f12ce4e461ffaa655 (diff)
downloadsrc-399479328143e215807bf0009e216e21fb8dda80.tar.gz
src-399479328143e215807bf0009e216e21fb8dda80.zip
When accessing the sysctl vfs.nfs.iodmax, don't report errors as being
from accessing vfs.nfs.iodmin.
Notes
Notes: svn path=/head/; revision=144757
Diffstat (limited to 'sbin/nfsiod')
-rw-r--r--sbin/nfsiod/nfsiod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/nfsiod/nfsiod.c b/sbin/nfsiod/nfsiod.c
index 5f4ec57b9104..31559cc61bd7 100644
--- a/sbin/nfsiod/nfsiod.c
+++ b/sbin/nfsiod/nfsiod.c
@@ -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;