提交 d513acdd 编写于 作者: M Matthias Bolte 提交者: Daniel Veillard

ESX cleanup of CPU model strings

* src/esx/esx_driver.c: also strip (C) and (TM) from the CPU model
  strings
上级 847a7c7c
......@@ -744,9 +744,12 @@ esxNodeGetInfo(virConnectPtr conn, virNodeInfoPtr nodeinfo)
if (STRPREFIX (ptr, " ")) {
memmove(ptr, ptr + 1, strlen (ptr + 1) + 1);
continue;
} else if (STRPREFIX (ptr, "(R)")) {
} else if (STRPREFIX(ptr, "(R)") || STRPREFIX(ptr, "(C)")) {
memmove(ptr, ptr + 3, strlen (ptr + 3) + 1);
continue;
} else if (STRPREFIX(ptr, "(TM)")) {
memmove(ptr, ptr + 4, strlen(ptr + 4) + 1);
continue;
}
++ptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册