From: Ben Gras Date: Tue, 11 Sep 2012 13:39:00 +0000 (+0200) Subject: top: clarify ordering in blocked mode X-Git-Tag: v3.2.1~338 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=4eca12cde56329b122689b7a070ac3ce92af96f4;p=minix.git top: clarify ordering in blocked mode --- diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index e5c409368..296a0f3ea 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -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;