From owner-svn-src-head@freebsd.org Wed Jan 15 18:10:03 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B9A121F92FE; Wed, 15 Jan 2020 18:10:03 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay110.isp.belgacom.be (mailrelay110.isp.belgacom.be [195.238.20.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign RSA OV SSL CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yb2g0b1Tz3K8C; Wed, 15 Jan 2020 18:10:02 +0000 (UTC) (envelope-from tijl@freebsd.org) IronPort-SDR: MgSUks6O+RZZWN+7jNHa3RYHvjcUjESiFV/tH3VXjQAvlOAkBxkE7KeqHtcM4owZJgwiM7dsxq 8Xd1uvGbKz1QW7PPmE4J8QfG9FXhOBkscZI5MOdludhU5PoTuGh3mjvt311Y9Ie/vHvDr1ctbE teq54p6anjiaJSk1+FTSJzjQ1f6TfOtrCSaBSn+bFFgbxT92HycxpfyvzLrLhXtNhUKWK49XyQ l0Rsthc6n13M7CACZ7ltgly5XA+5+GJHAmRdgxqFLpnPH47qjzo8s5UbpKO9Gvv1Pm7UA8CCSO Xxg= X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BdEQCCVB9e/8Ub9FFkHAEBAQEBBwE?= =?us-ascii?q?BEQEEBAEBgXuCKVkTVAEgEhYUjRKGCwGCEIpbkFwJAQEBAQEBAQEBKwwBAYR?= =?us-ascii?q?AAoF8JzgTAgMBAQsBAQUBAQEBAQUEbYRrTAyFXwEFOhwjEAsUBAklD0gGE4M?= =?us-ascii?q?ngn8LqRGENQELAYEIhAt/BoE2jDKCAIQkPoQIQYVuBJcqmBqCQoc9jmcnmm6?= =?us-ascii?q?EQw+SZ5Q0IoFYTTAIgydQGA2IDReIZIVAQAMwjWABAQ?= X-IPAS-Result: =?us-ascii?q?A2BdEQCCVB9e/8Ub9FFkHAEBAQEBBwEBEQEEBAEBgXuCK?= =?us-ascii?q?VkTVAEgEhYUjRKGCwGCEIpbkFwJAQEBAQEBAQEBKwwBAYRAAoF8JzgTAgMBA?= =?us-ascii?q?QsBAQUBAQEBAQUEbYRrTAyFXwEFOhwjEAsUBAklD0gGE4Mngn8LqRGENQELA?= =?us-ascii?q?YEIhAt/BoE2jDKCAIQkPoQIQYVuBJcqmBqCQoc9jmcnmm6EQw+SZ5Q0IoFYT?= =?us-ascii?q?TAIgydQGA2IDReIZIVAQAMwjWABAQ?= Received: from 197.27-244-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.244.27.197]) by relay.skynet.be with ESMTP; 15 Jan 2020 19:10:01 +0100 Received: from localhost (localhost [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id 00FI9xwA033067; Wed, 15 Jan 2020 19:09:59 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Wed, 15 Jan 2020 19:09:58 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Philip Paeps Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r355978 - head/usr.bin/top Message-ID: <20200115190958.13a33cb4@FreeBSD.org> In-Reply-To: <201912210503.xBL53LCh072168@repo.freebsd.org> References: <201912210503.xBL53LCh072168@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47yb2g0b1Tz3K8C X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.81 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.86)[-0.860,0]; ASN(0.00)[asn:5432, ipnet:195.238.0.0/19, country:BE]; NEURAL_HAM_LONG(-0.95)[-0.952,0] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 18:10:03 -0000 On Sat, 21 Dec 2019 05:03:21 +0000 (UTC) Philip Paeps wrote: > Author: philip > Date: Sat Dec 21 05:03:21 2019 > New Revision: 355978 > URL: https://svnweb.freebsd.org/changeset/base/355978 > > Log: > top: display battery capacity remaining > > Submitted by: Antranig Vartanian > Reviewed by: imp, philip > Differential Revision: https://reviews.freebsd.org/D22871 > > Modified: > head/usr.bin/top/display.c > head/usr.bin/top/display.h > head/usr.bin/top/machine.c > head/usr.bin/top/machine.h > head/usr.bin/top/top.c > > Modified: head/usr.bin/top/display.c > ============================================================================== > --- head/usr.bin/top/display.c Sat Dec 21 04:44:17 2019 (r355977) > +++ head/usr.bin/top/display.c Sat Dec 21 05:03:21 2019 (r355978) > @@ -1322,6 +1322,15 @@ i_uptime(struct timeval *bt, time_t *tod) > } > } > > +void > +i_battery(int nbat, int batt) > +{ > + > + if (nbat > 0) { > + printf("; battery: %d%%", batt); It doesn't fit. There's only room for "; b": last pid: 33047; load averages: 1.17, 1.25, 1.34; b up 3+07:35:37 19:08:41