guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: templates: Round build percentages.


From: Mathieu Othacehe
Subject: branch master updated: templates: Round build percentages.
Date: Mon, 12 Apr 2021 06:29:51 -0400

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix-cuirass.

The following commit(s) were added to refs/heads/master by this push:
     new 29dc601  templates: Round build percentages.
29dc601 is described below

commit 29dc6015a89486ccee855e367bb8c8a63be0817d
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Mon Apr 12 12:28:04 2021 +0200

    templates: Round build percentages.
    
    * src/cuirass/templates.scm (specifications-table): Round percentages.
---
 src/cuirass/templates.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index 53275b2..56ceb0e 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -333,8 +333,9 @@ $('.job-toggle').click(function() {
                               `((div
                                  (@ (class "badge badge-success job-per mr-3")
                                     (title "Percentage succeeded"))
-                                 ,(format #f "~1,2f%"
-                                          (assq-ref summary #:percentage)))
+                                 ,(nearest-exact-integer
+                                   (assq-ref summary #:percentage))
+                                 "%")
                                 " "
                                 (div
                                  (@ (class "job-val"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]