From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mD5oNH4v0GJsOAEAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 17:00:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uBgoNH4v0GI5SQAAauVa8A (envelope-from ) for ; Thu, 14 Jul 2022 17:00:14 +0200 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 BE957C15F for ; Thu, 14 Jul 2022 17:00:13 +0200 (CEST) Received: from localhost ([::1]:55008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC0K4-0005Km-Q4 for larch@yhetil.org; Thu, 14 Jul 2022 11:00:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC0Ju-0005Jc-Us for guix-patches@gnu.org; Thu, 14 Jul 2022 11:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oC0Ju-0007Jq-Kx for guix-patches@gnu.org; Thu, 14 Jul 2022 11:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oC0Ju-0004RC-GF for guix-patches@gnu.org; Thu, 14 Jul 2022 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56558] [PATCH] build: Simpler percentage calculation. Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Jul 2022 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56558 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56558@debbugs.gnu.org Cc: raingloom X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165781079217008 (code B ref -1); Thu, 14 Jul 2022 15:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jul 2022 14:59:52 +0000 Received: from localhost ([127.0.0.1]:38592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC0Jk-0004QG-1S for submit@debbugs.gnu.org; Thu, 14 Jul 2022 10:59:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:41692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC0Ji-0004Q8-MQ for submit@debbugs.gnu.org; Thu, 14 Jul 2022 10:59:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC0Ji-0004tf-Gt for guix-patches@gnu.org; Thu, 14 Jul 2022 10:59:50 -0400 Received: from mx1.riseup.net ([198.252.153.129]:43340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC0Jg-0007Gw-5a for guix-patches@gnu.org; Thu, 14 Jul 2022 10:59:49 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4LkHhf4gmWzDrXX for ; Thu, 14 Jul 2022 14:59:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1657810786; bh=fzL9MmKZHjHsWw4Fn0rJKtE7sxgm70HQBtuIXcqsJrE=; h=From:To:Cc:Subject:Date:From; b=EaVH86Kz2TifawsODaR4BeakiKmnR5xz1Fg8sFY84mCh8RHfhz6W2sECxbpY9Vzoy 6rqNvKNXMEahvKYASZOGZO7fJrcuiTyHvkwDR+h4DhxDjkaLYcw4UrNMbxK/XEFYWO DNCXSW4Y/CX6DNuNdZnrvQZnQBpCLONGbLRRgdUg= X-Riseup-User-ID: 71A3002FE9AA57555A6479D41E0659D74EA13E83245BBAF331A4CB3FBC896A76 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4LkHhd5JxCz214c; Thu, 14 Jul 2022 14:59:45 +0000 (UTC) From: raingloom Date: Thu, 14 Jul 2022 16:58:51 +0200 Message-Id: <20220714145851.20305-1-raingloom@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657810814; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xWpbsgCRyrBvDaZG+kiJVtNrvMM8OiezmKSnhpwDznM=; b=rWYVi1ecqQSPZFaRnG7/ACSOSM3vDn6R6a69Sg2hIatZcDn4k7EPiU1FFTaoVTUWdR/+6p fSyD5RTdM5l5ZFfgq9f9bypK7gNj1LrLE+XewmNj8vR0ZabMBRDByu3Q81no2jH7iu8Alz m8pqwa3iib7MV9YC4GQ9Js0yqVao0y8r5Dum/wslZF84NaItzfRrdXhR3gHBsBwJkgip8Z jUuCYdGUhU6HZT2M7XzQfqc1hgFPX6ifCgAPM0NwYIO5DtdL0jGnLaQVyYSjs8wh59osZE VGjFQFc0HzJQ8rpFTmoQnGKSvt2oPM2RIcjkba8kdgCNxGIn+3F61c8JK75aww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657810814; a=rsa-sha256; cv=none; b=oQNeVNEodl6QASgVqQX8KWmXoRIiWSk0S9HYZVbqnKHUXbcwnJtLdaf1GxLeS2my4CXeC0 K4GbkrAzkniUtP/r949Pffmx0RVBRjfVpWF0SM2/emG7k6HTxlDVH337mI/jhsmtlxq+Uy dH+x40EkmRgYIFMq3yXR+iEzVhOisxCr4VoC9fbu23+CVWtnyEUn81tgHsib0LdtHDWsUL w/je68wqyY4gRJBryfSWK5etiXAfLI4orF7x5kP7pIC03BhA9VDKDypnTugnzjEPfeoc9l cR50RY3fvQ2p7wUIXQVf7ETmlgy1sooEu5ba42ZA4SkNs44mcZJ2pf86cxkAZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=EaVH86Kz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=EaVH86Kz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BE957C15F X-Spam-Score: 7.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: J0DyDLZBqDGK * build-aux/compile-all (%): Simpler calculation that avoids intermediate float. --- build-aux/compile-all.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/compile-all.scm b/build-aux/compile-all.scm index 9ffbce43ad..6fdbe0dea8 100644 --- a/build-aux/compile-all.scm +++ b/build-aux/compile-all.scm @@ -89,7 +89,7 @@ (define (parallel-job-count*) (define (% completed total) "Return the completion percentage of COMPLETED over TOTAL as an integer." - (inexact->exact (round (* 100. (/ completed total))))) + (quotient (* 100 completed) total)) ;; Install a SIGINT handler to give unwind handlers in 'compile-file' an ;; opportunity to run upon SIGINT and to remove temporary output files. -- 2.37.0