From: Pavel Rochnyack Date: Mon, 13 May 2019 09:07:56 +0000 (+0700) Subject: virt plugin: Fix typo X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c07e76d81a7790c265676045e96c88a88a7cc85a;p=collectd.git virt plugin: Fix typo --- diff --git a/src/virt.c b/src/virt.c index 288281a5..509e1494 100644 --- a/src/virt.c +++ b/src/virt.c @@ -1704,9 +1704,9 @@ static int get_memory_stats(virDomainPtr domain) { swap_in = minfo[i].val; else if (minfo[i].tag == VIR_DOMAIN_MEMORY_STAT_SWAP_OUT) swap_out = minfo[i].val; - else if (minfo[i].tag == VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT) - min_flt = minfo[i].val; else if (minfo[i].tag == VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT) + min_flt = minfo[i].val; + else if (minfo[i].tag == VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT) maj_flt = minfo[i].val; #ifdef LIBVIR_CHECK_VERSION #if LIBVIR_CHECK_VERSION(2, 1, 0)