top: clarify ordering in blocked mode

This commit is contained in:
Ben Gras 2012-09-11 15:39:00 +02:00
parent 17e41d3081
commit 4eca12cde5

View file

@ -311,9 +311,9 @@ int cmp_procs(const void *v1, const void *v2)
*/
if(blockedverbose && (p1blocked || p2blocked)) {
if(!p1blocked && p2blocked)
if(!p1blocked && p2blocked)
return -1;
if( p2blocked && !p1blocked)
if(!p2blocked && p1blocked)
return 1;
} else if((c=cmp64(p1->ticks, p2->ticks)) != 0)
return -c;