diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-09-28 08:23:44 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-09-28 08:23:44 +0000 |
commit | 187cb9db18d08fc2f9cf39b1cfbbc62d00d415dc (patch) | |
tree | 02b002c396000175937f1ea9d0e6930afd76ffb8 | |
parent | c4d70ac36b834e179beb816d0edf5f3ed7b59642 (diff) |
Fix copy-pasto to use maxmem instead of maxcpu
Reported by Greg Steuck
OK mlarkin@
-rw-r--r-- | usr.sbin/vmd/vmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c index 25d19dc7a7f..890e9288dd1 100644 --- a/usr.sbin/vmd/vmd.c +++ b/usr.sbin/vmd/vmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.c,v 1.100 2018/09/10 10:39:26 bluhm Exp $ */ +/* $OpenBSD: vmd.c,v 1.101 2018/09/28 08:23:43 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -1861,7 +1861,7 @@ user_checklimit(struct vmd_user *usr, struct vm_create_params *vcp) limit = "cpu "; goto fail; } - if (usr->usr_maxcpu > VM_DEFAULT_USER_MAXMEM) { + if (usr->usr_maxmem > VM_DEFAULT_USER_MAXMEM) { limit = "memory "; goto fail; } |