From nobody Wed Jun 28 00:57:17 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QrNTV0tX3z4kJFx; Wed, 28 Jun 2023 00:57:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QrNTT49Hjz46xw; Wed, 28 Jun 2023 00:57:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687913837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SFweqlQsrWToCItx+KD2Sn4STwvE/wJix4ZTe1mhTJA=; b=g9X08xcPvFPiiWL1euKiDtlxZKILPL/7z5LnWF4AvrtRW5z1eJhowJv7IhPvDWYNrF+p6r ntw63uIv+Zz59ZvIY4qWZXE1R+2tDPfwKRNNjHAywAB2/hM34tQ6SFyukpKSxlIuFRLrlJ 4JMxW7FGRkedRRiWpxrH/vHRh9MIJ9i6WhpmZDBzDC8sMkHYAyfyHCHJAVvQ2nkubTmamZ KuEnajoEvWwcA5Iaas2gCEv4iYEUlV5/KTrwIhHcZChH0sDcBYy1cki08p5yyTlufOnPXW hKnpC8TeCGi77bfG0TlAkBItZk6ZYRYDn8dzrY7t7Pbc9prmJmP66ynqTX0+3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687913837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SFweqlQsrWToCItx+KD2Sn4STwvE/wJix4ZTe1mhTJA=; b=PWh7oCMbFHEp88xTiZSMhnQGDiq1vA7WjlUHNP8B1wZp0q86ON6qKlqgdDZVoxH9a1dApv Z3oI3dt1uYh+GB93VniUExNCBIs7NcyFVbiug4lkXojANRQ7FPthvAS38qCNxUeVbueF1a Ev497Aadod5VjDyJHCx/WVllrkAAjQulP8XM/spEmuPt6Ir1By++X+jFM3vaLlp37sxUx3 i+WfyJadAbTLUys/zuC/lW61ACnxrIA3yHMW2Z9JYyJMhP4PfdHv0eYo4J2d7UmM+jwB3h FgXj/9hCmRD/BjRCvcB/rY6IWmuVZKjyJaoBW3EKB52l2+CuWAISydVB6n7gLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687913837; a=rsa-sha256; cv=none; b=CFXXxIaJ6uzXurcyFmHEhJfPvQvM/quZk6/MYfzMfHUdUTa4ea93RxwxfKzHWuAc5YLZGK PiwJY7zbNmuYbRtwBkRsbipE6c+Ygl4IsRtIrYe9lDKdeNvbvl5Cb+Ck5cbCWmS0tXuddZ MFAS75LaJJkoJiAB4P46UQcqXLiMl2DH75p421yH6iiAlVUvsx/RZ6JcP+s2FvwpVL4H/9 RchHqkRAvz7CuIBw8E5gdW5KZYRtKDV8lijAmFIzhnQ2O1YNKGAKu7qGT6SniJOtScUutT NC2Sw4i2E4QVHIzXeAoGZrbOB85momi1+OlM7McDmLnX3Efu0KbDDwXA5VGJYw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QrNTT3C6JzDnJ; Wed, 28 Jun 2023 00:57:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35S0vHxU079142; Wed, 28 Jun 2023 00:57:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35S0vHLX079141; Wed, 28 Jun 2023 00:57:17 GMT (envelope-from git) Date: Wed, 28 Jun 2023 00:57:17 GMT Message-Id: <202306280057.35S0vHLX079141@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 8a5c2ed0c7f6 - stable/13 - top(8): document the actual sort order for process sorting List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8a5c2ed0c7f66cfa5c3b40696c9b531be17886a5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8a5c2ed0c7f66cfa5c3b40696c9b531be17886a5 commit 8a5c2ed0c7f66cfa5c3b40696c9b531be17886a5 Author: Konstantin Belousov AuthorDate: 2023-06-19 15:57:00 +0000 Commit: Konstantin Belousov CommitDate: 2023-06-27 21:04:15 +0000 top(8): document the actual sort order for process sorting (cherry picked from commit d636fc5bd1e218d2eb4d017b93ee59f5db5c8507) --- usr.bin/top/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 033861d3f7fb..15788fe53443 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1256,9 +1256,9 @@ compare_tid(const void *p1, const void *p2) * distinct keys. The keys (in descending order of importance) are: * percent cpu, cpu ticks, state, resident set size, total virtual * memory usage. The process states are ordered as follows (from least - * to most important): WAIT, zombie, sleep, stop, start, run. The - * array declaration below maps a process state index into a number - * that reflects this ordering. + * to most important): run, zombie, idle, interrupt wait, stop, sleep. + * The array declaration below maps a process state index into a + * number that reflects this ordering. */ static const int sorted_state[] = {