]> Zhao Yanbai Git Server - minix.git/commitdiff
top: clarify ordering in blocked mode
authorBen Gras <ben@minix3.org>
Tue, 11 Sep 2012 13:39:00 +0000 (15:39 +0200)
committerBen Gras <ben@minix3.org>
Tue, 11 Sep 2012 13:39:00 +0000 (15:39 +0200)
usr.bin/top/top.c

index e5c409368487debaf0a561df079bfafa0ff397cc..296a0f3eadf585a6d08d7d7099ddfd135b2a780c 100644 (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;