[freeside-commits] branch master updated. 53a8c81b4f3a414803a52fc8114b26a71055d012

Ivan ivan at 420.am
Fri Oct 7 07:21:26 PDT 2016


The branch, master has been updated
       via  53a8c81b4f3a414803a52fc8114b26a71055d012 (commit)
      from  ce71ca0fc6ca933af93c76c2f8e5f764e304b3a0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 53a8c81b4f3a414803a52fc8114b26a71055d012
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Oct 7 07:21:25 2016 -0700

    show DB size

diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html
index 7fd019e..7fb9d0b 100644
--- a/httemplate/view/Status.html
+++ b/httemplate/view/Status.html
@@ -36,9 +36,7 @@ if ( $db eq 'PostgreSQL' && $db_ver =~ /^\s*PostgreSQL\s+([\w\.]+)\s+on\s+/ ) {
 my $db_size = 'Unknown';
 if ( $db eq 'PostgreSQL' ) {
   $db_size = FS::Record->scalar_sql(qq(
-    SELECT pg_size_pretty(pg_database_size(datname))
-      FROM pg_catalog.pg_database
-     WHERE datname = 'freeside'
+    SELECT pg_size_pretty(pg_database_size('freeside'))
   ));
 }
 

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/Status.html |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)




More information about the freeside-commits mailing list