[SIGAR-46] Fix cpu_info.{mhz,cache_size} fields in UML vms
This commit is contained in:
parent
f1899e093d
commit
e3edf38057
|
@ -1,3 +1,7 @@
|
|||
2007-04-05 Doug MacEachern <dougm@hyperic.com>
|
||||
|
||||
* [SIGAR-46] Fix cpu_info.{mhz,cache_size} fields in UML vms
|
||||
|
||||
2007-03-29 Doug MacEachern <dougm@hyperic.com>
|
||||
|
||||
* Fix cpu ticks to msec on linux/ia64
|
||||
|
|
|
@ -1521,6 +1521,10 @@ static int get_cpu_info(sigar_t *sigar, sigar_cpu_info_t *info,
|
|||
|
||||
int found = 0;
|
||||
|
||||
/* UML vm wont have "cpu MHz" or "cache size" fields */
|
||||
info->mhz = 0;
|
||||
info->cache_size = 0;
|
||||
|
||||
#ifdef __powerpc64__
|
||||
SIGAR_SSTRCPY(info->vendor, "IBM");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue