projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update virt.c
[collectd.git]
/
src
/
virt.c
diff --git
a/src/virt.c
b/src/virt.c
index
174db2f
..
71b5b32
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-1189,13
+1189,13
@@
static int get_vcpu_stats(virDomainPtr domain, unsigned short nr_virt_cpu) {
virVcpuInfoPtr vinfo = calloc(nr_virt_cpu, sizeof(vinfo[0]));
if (vinfo == NULL) {
virVcpuInfoPtr vinfo = calloc(nr_virt_cpu, sizeof(vinfo[0]));
if (vinfo == NULL) {
- ERROR(PLUGIN_NAME " plugin:
m
alloc failed.");
+ ERROR(PLUGIN_NAME " plugin:
c
alloc failed.");
return -1;
}
unsigned char *cpumaps = calloc(nr_virt_cpu, cpu_map_len);
if (cpumaps == NULL) {
return -1;
}
unsigned char *cpumaps = calloc(nr_virt_cpu, cpu_map_len);
if (cpumaps == NULL) {
- ERROR(PLUGIN_NAME " plugin:
m
alloc failed.");
+ ERROR(PLUGIN_NAME " plugin:
c
alloc failed.");
sfree(vinfo);
return -1;
}
sfree(vinfo);
return -1;
}
@@
-1636,7
+1636,7
@@
static int lv_read(user_data_t *ud) {
ERROR(PLUGIN_NAME
" failed to get stats for block device (%s) in domain %s",
state->block_devices[i].path,
ERROR(PLUGIN_NAME
" failed to get stats for block device (%s) in domain %s",
state->block_devices[i].path,
- virDomainGetName(state->
domains[i].ptr
));
+ virDomainGetName(state->
block_devices[i].dom
));
}
/* Get interface stats for each domain. */
}
/* Get interface stats for each domain. */