guix-commits
[Top][All Lists]
Advanced

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

branch master updated: Fix a regression in the metrics page


From: Christopher Baines
Subject: branch master updated: Fix a regression in the metrics page
Date: Sun, 03 Jan 2021 07:50:36 -0500

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

cbaines pushed a commit to branch master
in repository data-service.

The following commit(s) were added to refs/heads/master by this push:
     new e3878fe  Fix a regression in the metrics page
e3878fe is described below

commit e3878fefb4184f3ad45a6e6f434767c0bf109db8
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jan 3 12:50:07 2021 +0000

    Fix a regression in the metrics page
    
    From the squee NULL handling change.
---
 guix-data-service/metrics.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/guix-data-service/metrics.scm b/guix-data-service/metrics.scm
index 16d7fb9..7af8924 100644
--- a/guix-data-service/metrics.scm
+++ b/guix-data-service/metrics.scm
@@ -78,9 +78,9 @@ LEFT JOIN pg_tablespace ON tablespace_id = pg_tablespace.oid")
          ((name tablespace row-estimate table-bytes toast-bytes)
           (list name
                 tablespace
-                (or (string->number row-estimate) 0)
-                (or (string->number table-bytes) 0)
-                (or (string->number toast-bytes) 0))))
+                (or (string->number (or row-estimate "")) 0)
+                (or (string->number (or table-bytes "")) 0)
+                (or (string->number (or toast-bytes "")) 0))))
        (exec-query conn query)))
 
 (define (fetch-pg-stat-user-tables-metrics conn)



reply via email to

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