From: VMware, Inc <> Date: Tue, 19 Oct 2010 19:48:31 +0000 (-0700) Subject: lib/lock: top N long users X-Git-Tag: 2010.10.18-313025~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b0596e9582355527eda30ee880fcb7d5565446f;p=thirdparty%2Fopen-vm-tools.git lib/lock: top N long users Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/lock/ulStats.c b/open-vm-tools/lib/lock/ulStats.c index 555d95db5..dea762f73 100644 --- a/open-vm-tools/lib/lock/ulStats.c +++ b/open-vm-tools/lib/lock/ulStats.c @@ -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; } }