mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
vz: change printing format specifier for network statistics
This is necessary to be able to get statistics for venet0 or "host-routed" adapter, which has -1 index and thus, its statistics is shown as "net.nic4294967295". Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
This commit is contained in:
+1
-1
@@ -4517,7 +4517,7 @@ prlsdkGetNetStats(PRL_HANDLE sdkstats, PRL_HANDLE sdkdom, const char *path,
|
||||
prlsdkCheckRetGoto(pret, cleanup);
|
||||
|
||||
#define PRLSDK_GET_NET_COUNTER(VAL, NAME) \
|
||||
if (virAsprintf(&name, "net.nic%d.%s", net_index, NAME) < 0) \
|
||||
if (virAsprintf(&name, "net.nic%u.%s", net_index, NAME) < 0) \
|
||||
goto cleanup; \
|
||||
if (prlsdkExtractStatsParam(sdkstats, name, &stats->VAL) < 0) \
|
||||
goto cleanup; \
|
||||
|
||||
Reference in New Issue
Block a user