提交 6c4b0414 编写于 作者: M Matthias Bolte

esx: Fix check in esxDomainGetInfo's perf metric handling

上级 534056c7
...@@ -2329,15 +2329,17 @@ esxDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info) ...@@ -2329,15 +2329,17 @@ esxDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info)
perfEntityMetric = perfEntityMetric =
esxVI_PerfEntityMetric_DynamicCast(perfEntityMetricBase); esxVI_PerfEntityMetric_DynamicCast(perfEntityMetricBase);
if (perfMetricIntSeries == NULL) { if (perfEntityMetric == NULL) {
VIR_ERROR0(_("QueryPerf returned object with unexpected type")); VIR_ERROR(_("QueryPerf returned object with unexpected type '%s'"),
esxVI_Type_ToString(perfEntityMetricBase->_type));
} }
perfMetricIntSeries = perfMetricIntSeries =
esxVI_PerfMetricIntSeries_DynamicCast(perfEntityMetric->value); esxVI_PerfMetricIntSeries_DynamicCast(perfEntityMetric->value);
if (perfMetricIntSeries == NULL) { if (perfMetricIntSeries == NULL) {
VIR_ERROR0(_("QueryPerf returned object with unexpected type")); VIR_ERROR(_("QueryPerf returned object with unexpected type '%s'"),
esxVI_Type_ToString(perfEntityMetric->value->_type));
} }
for (; perfMetricIntSeries != NULL; for (; perfMetricIntSeries != NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册