]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/lock: top N long users
authorVMware, Inc <>
Tue, 19 Oct 2010 19:48:31 +0000 (12:48 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 19 Oct 2010 19:48:31 +0000 (12:48 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ulStats.c

index 555d95db53254d059f6a671e4eeeb0b83fae60d0..dea762f736f83c731067798b603783625977e40a 100644 (file)
@@ -291,8 +291,8 @@ MXUserHistoSample(MXUserHisto *histo,  // IN/OUT:
          break;
       }
 
-      if (histo->ownerArray[index].timeValue <
-          histo->ownerArray[i].timeValue) {
+      if (histo->ownerArray[i].timeValue <
+          histo->ownerArray[index].timeValue) {
          index = i;
       }
    }