From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 26 21:48:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EDA81065673 for ; Fri, 26 Dec 2008 21:48:19 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 15C488FC0C for ; Fri, 26 Dec 2008 21:48:18 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2065068ywe.13 for ; Fri, 26 Dec 2008 13:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=834oDYE3ZYNqvqsXAKWQZChbMbwNFBQYGvQTB+phmaQ=; b=VGFxwSNQr3tcR0C82vsW3g6zZ6pvTpg6D1sJNySJE1wf7YnzivYDYfZEXSu76uF3de p1jfXth/pmu7Z/DBkvIHv+vGE5ORPIGoiDeZCWtNYxVQ34d+JvpmNdz0zbO1S7IydVvg a/2NTP5ULvIX/9k9LuwEKFeVxky1p7wnmPOk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=NBpqqKFO+/FC4IFjRwZmCNZmu13ygKuOM0OADbpyY07fPyzkgirEZXLjowCczzCaGA TlUhkrRm8r+E9jrauk05QN9J2A6nMoMTqTVO6Eker4aQsEzNb0HLyNxa3d6zN4NiNgKJ xF03+BCNqPgiWb40dc7l2qnJXCwrSK4bF+PUg= Received: by 10.100.126.15 with SMTP id y15mr6518680anc.123.1230328098369; Fri, 26 Dec 2008 13:48:18 -0800 (PST) Received: from ?10.91.161.171? ([32.157.26.69]) by mx.google.com with ESMTPS id c37sm15961512ana.37.2008.12.26.13.48.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Dec 2008 13:48:17 -0800 (PST) References: <7555893E-5D2F-4C3C-A1C7-7BCC2461AE23@gmail.com> Message-Id: From: Garrett Cooper To: =?utf-8?Q?Nikola_Kne=C5=BEevi=C4=87?= In-Reply-To: <7555893E-5D2F-4C3C-A1C7-7BCC2461AE23@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (5F136) Mime-Version: 1.0 (iPhone Mail 5F136) Date: Fri, 26 Dec 2008 13:47:57 -0800 Cc: "freebsd-hackers@freebsd.org" Subject: Re: ps not showing CPU# correctly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2008 21:48:19 -0000 On Dec 26, 2008, at 11:20, Nikola Kne=C5=BEevi=C4=87 = =20 wrote: > Hi, > > on my system, I noticed that ps(1) is not showing the CPU# correctly =20= > (it always displays 0). There was a bug in it, and it was fetching =20 > ki_estcpu instead of ki_lastcpu. > > The attached patch fixes this issue. > > Cheers, > Nikola > > > Could you please submit this patch in a PR so we can track the change =20= better? Thanks! Garrett=