From nobody Wed Jun 21 05:37:52 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 4QmC2S2S9Zz4g16k; Wed, 21 Jun 2023 05:37:52 +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 4QmC2S22Nyz3Qqd; Wed, 21 Jun 2023 05:37:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687325872; 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=pDj2iEpFHyaX2kWF333YLU/5NvdTZ2tQ0hULWT8fRBQ=; b=sF6FYsG9oGn2dOXzRS3boou259L/eVtsRskuYOGnDEmtjTfQgLHrqhJlT4Xi3iVRK0FRxh z5+OYLj0LpcamAXiYu0Q9sR1UJBqv1UFuWE7+Esm/vU4b7fRbiY+rqy4wbKV2+uv7SYEY+ pQXE0XIVMPFxcVNXoDDYXRYB4hh+bv2DHj3+xo+zEueTqasWa1fXDX5331xjMepusgJsUk dpXgM2DwC3Y+nyMuk9W+SzwUOnYbDyFBytNfeNMkGnnxRHtgKf5kbnHjAx1/XajeQLx+zD yCavMtYtDR/AW6BGVi9n+EKQ+Lwutn9eoJHzz2w27g+jFa5mhuWhQJrugb6jBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687325872; 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=pDj2iEpFHyaX2kWF333YLU/5NvdTZ2tQ0hULWT8fRBQ=; b=uxGRYo8x+osaOL9r/+sGpgzzOLD9SpoihBnU3zh0lSz2rbKhfEXMQCUYwIeInxEAQz9+tw k2+NWUAyMeSPHxQN0BbcSVmcSph0wjthXxF5CR6Gi3rLO3WydmnLa5t5fUGfTRjxvvj2Qd 8NKc8S9K7Uod3FxFHnqD5isUl93572kH4dDc/IAFhsOxF/xadkzanJHwJOqBE1CpStFEKj xub8w1VjhqjumX4je0XooPadbui0Y9nWd5q38OZ7MQyK3hiy5TBsYB97Z+CPFIXRpWx6xP RDYZxW75/0g4CwJ9ifxOeuL4ybpHlhMwSOYelNM7BKCIegGgPixdCZB8z9BruQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687325872; a=rsa-sha256; cv=none; b=SNaGplJBm8vlhsnEs6NzmOx7/E60kJE3xddHrMeOh3fqHk+fNEczeQQ22DSXh/jsegKMpx B8sTDx4IZpjD9+cYePWrragyKZbc6unsPM2w57hEnk2iojNFAODT/rLVBgu19LLAzm7xzi oKJ8+lvLF9GvHcblr755dcEfIBP6Z+ARCT7SXV2kpKUKO/Z+nHlMuI7uqFQES8Ox0eECKh X8kVWtazUqwG1OpeUnOxtn+NY2p5elJoNZ4kI7+urI/gJc21dVYN3d7L8LwD+VKu7S3/oR TAuCseBF9iEqDqtowZGvpw7neVRS29Eo1WALn/gt6DVV+6JekAE47aXA+ylCUQ== 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 4QmC2S18gLzVW1; Wed, 21 Jun 2023 05:37:52 +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 35L5bqxm048356; Wed, 21 Jun 2023 05:37:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35L5bqlX048355; Wed, 21 Jun 2023 05:37:52 GMT (envelope-from git) Date: Wed, 21 Jun 2023 05:37:52 GMT Message-Id: <202306210537.35L5bqlX048355@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: d636fc5bd1e2 - main - 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/main X-Git-Reftype: branch X-Git-Commit: d636fc5bd1e218d2eb4d017b93ee59f5db5c8507 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d636fc5bd1e218d2eb4d017b93ee59f5db5c8507 commit d636fc5bd1e218d2eb4d017b93ee59f5db5c8507 Author: Konstantin Belousov AuthorDate: 2023-06-19 15:57:00 +0000 Commit: Konstantin Belousov CommitDate: 2023-06-21 05:37:24 +0000 top(8): document the actual sort order for process sorting Noted by: Mark Millard Reviewed by: kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40607 --- 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[] = {