summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2022-05-04 02:24:27 +0000
committerDave Voutila <dv@cvs.openbsd.org>2022-05-04 02:24:27 +0000
commit8acb2daa0bae23f505592cf20273a3c680504e20 (patch)
tree054683292dca905ff93ac7571212156d884b4fe1 /usr.sbin
parentd479378255c624fc6c59decbdb6d7bb1e8116f90 (diff)
Missed removing some memory scaling in vmm, vmctl.
Continuation of commitid RbITgDkOsW8SMssz removing use of megabytes instead of bytes in vmm(4) and vmctl(8). Missed this spot that only manifests after a vm is started and has its runtime details inspected.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/vmctl/vmctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/vmctl/vmctl.c b/usr.sbin/vmctl/vmctl.c
index b1977f95051..9cda15bdc77 100644
--- a/usr.sbin/vmctl/vmctl.c
+++ b/usr.sbin/vmctl/vmctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmctl.c,v 1.80 2022/05/03 21:39:18 dv Exp $ */
+/* $OpenBSD: vmctl.c,v 1.81 2022/05/04 02:24:26 dv Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
@@ -793,8 +793,7 @@ print_vm_info(struct vmop_info_result *list, size_t ct)
(void)strlcpy(curmem, "-", sizeof(curmem));
(void)strlcpy(maxmem, "-", sizeof(maxmem));
- (void)fmt_scaled(vir->vir_memory_size * 1024 * 1024,
- maxmem);
+ (void)fmt_scaled(vir->vir_memory_size, maxmem);
if (running) {
if (*vmi->vir_ttyname == '\0')