ESX cleanup of CPU model strings

* src/esx/esx_driver.c: also strip (C) and (TM) from the CPU model
  strings
This commit is contained in:
Matthias Bolte 2009-09-14 14:20:07 +02:00 committed by Daniel Veillard
parent 847a7c7c2e
commit d513acdd54

View File

@ -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;