From 350f5c8df2cb6edbfb5bae95f00a9fff446d236c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 4 Sep 2018 14:30:37 +0200 Subject: [PATCH] lscpu: use the first VM from /proc/sysinfo Addresses: https://github.com/karelzak/util-linux/issues/685 Signed-off-by: Karel Zak --- sys-utils/lscpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 57f097dae8..1ff9069f34 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -859,6 +859,7 @@ read_hypervisor(struct lscpu_desc *desc, struct lscpu_modifier *mod) *(str--) = '\0'; while ((str = strstr(desc->hypervisor, " "))) memmove(str, str + 1, strlen(str)); + break; } fclose(fd); } -- 2.47.2