[freeside-commits] branch FREESIDE_4_BRANCH updated. 44f6ba635e70aa9a1a60ef6d2d046535d719ef3f

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


The branch, FREESIDE_4_BRANCH has been updated
       via  44f6ba635e70aa9a1a60ef6d2d046535d719ef3f (commit)
      from  dc59b913ffd2498cd43926eb38d776cb22a7204f (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 44f6ba635e70aa9a1a60ef6d2d046535d719ef3f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Oct 7 07:21:27 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