Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lscpu: use the first VM from /proc/sysinfo
Addresses: #685
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Sep 4, 2018
1 parent d0b75b0 commit 350f5c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys-utils/lscpu.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 350f5c8

Please sign in to comment.