projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce71ca0
)
show DB size
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 7 Oct 2016 14:21:25 +0000
(07:21 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 7 Oct 2016 14:21:25 +0000
(07:21 -0700)
httemplate/view/Status.html
patch
|
blob
|
history
diff --git
a/httemplate/view/Status.html
b/httemplate/view/Status.html
index
7fd019e
..
7fb9d0b
100644
(file)
--- 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'))
));
}