virt plugin: Fix typo
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 13 May 2019 09:07:56 +0000 (16:07 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 13 May 2019 09:07:56 +0000 (16:07 +0700)
src/virt.c

index 288281a..509e149 100644 (file)
@@ -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)