From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qKRnKNoLAV9/dwAA0tVLHw (envelope-from ) for ; Sat, 04 Jul 2020 23:08:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cPI8JNoLAV9kNAAA1q6Kng (envelope-from ) for ; Sat, 04 Jul 2020 23:08:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58C7A9403EE for ; Sat, 4 Jul 2020 23:08:10 +0000 (UTC) Received: from localhost ([::1]:35604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrrGT-0001Y6-8s for larch@yhetil.org; Sat, 04 Jul 2020 19:08:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrrGN-0001Wy-9l for guix-patches@gnu.org; Sat, 04 Jul 2020 19:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jrrGN-0006iT-13 for guix-patches@gnu.org; Sat, 04 Jul 2020 19:08:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jrrGM-00034O-Sn for guix-patches@gnu.org; Sat, 04 Jul 2020 19:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42208] [PATCH] weather: Print 0.0% correctly. References: <20200704230504.6763-1-arunisaac@systemreboot.net> In-Reply-To: <20200704230504.6763-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Jul 2020 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42208 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42208@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 42208-submit@debbugs.gnu.org id=B42208.159390407411776 (code B ref 42208); Sat, 04 Jul 2020 23:08:02 +0000 Received: (at 42208) by debbugs.gnu.org; 4 Jul 2020 23:07:54 +0000 Received: from localhost ([127.0.0.1]:59815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrrGE-00033s-Kf for submit@debbugs.gnu.org; Sat, 04 Jul 2020 19:07:54 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:60296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrrGB-00033i-PX for 42208@debbugs.gnu.org; Sat, 04 Jul 2020 19:07:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fmegEX1zcnfmRR7BDjIfRIZH5vmBKOmwbUpoJTO0HKk=; b=C2nuG/8Yb3oQ/WYs9zc9yFmN8z 8HbOFvnYnNX+nMM+zVYavQclcMT65j2psz3EPiw+fPbDn3Z4ADGkGJMpaSKRmm1MCG1K+3equvHgu 5QDWkFeMpQHRwXdPG9UJiwPntIjtF25bQzXtaNKwDXmkJsbJJipIV9uRQ/1XJYeDGMTk=; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1jrrG8-0009FX-LP; Sun, 05 Jul 2020 04:37:48 +0530 From: Arun Isaac Date: Sun, 5 Jul 2020 04:37:47 +0530 Message-Id: <20200704230747.6870-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=systemreboot.net header.s=default header.b=C2nuG/8Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: XiabXI3mYEB8 * guix/scripts/weather.scm (report-server-coverage): Report 0% coverage as 0.0%, not as .0%. --- guix/scripts/weather.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/weather.scm b/guix/scripts/weather.scm index 475d989357..3035ff6ca8 100644 --- a/guix/scripts/weather.scm +++ b/guix/scripts/weather.scm @@ -190,7 +190,7 @@ Return the coverage ratio, an exact number between 0 and 1." narinfos)) (time (+ (time-second time) (/ (time-nanosecond time) 1e9)))) - (format #t (G_ " ~2,1f% substitutes available (~h out of ~h)~%") + (format #t (G_ " ~,1f% substitutes available (~h out of ~h)~%") (* 100. (/ obtained requested 1.)) obtained requested) (let ((total (/ (reduce + 0 sizes) MiB))) -- 2.26.2