projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
754f419
)
fix slave IP display
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 18 Sep 2019 23:19:51 +0000
(16:19 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 18 Sep 2019 23:19:51 +0000
(16:19 -0700)
httemplate/view/Status.html
patch
|
blob
|
history
diff --git
a/httemplate/view/Status.html
b/httemplate/view/Status.html
index
7fb03eb
..
af58f35
100644
(file)
--- a/
httemplate/view/Status.html
+++ b/
httemplate/view/Status.html
@@
-121,7
+121,7
@@
if ( $db eq 'PostgreSQL' ) {
&& FS::Record->scalar_sql('SHOW archive_mode') eq 'on';
my $slave =
&& FS::Record->scalar_sql('SHOW archive_mode') eq 'on';
my $slave =
- FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]+):
/
+ FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]+):/
? $1 : '';
$status{'Replication'} = [
? $1 : '';
$status{'Replication'} = [
@@
-141,11
+141,11
@@
if ( $db eq 'PostgreSQL' ) {
# http://www.keithf4.com/monitoring_streaming_slave_lag/
# except pg_stat_replication still doesn't fill in the columns we need as
# non-Pg user :/
# http://www.keithf4.com/monitoring_streaming_slave_lag/
# except pg_stat_replication still doesn't fill in the columns we need as
# non-Pg user :/
- push @{ $status{'Replication'} },
- { 'title' => 'Slave',
- 'value' => $slave || '(Missing, or unparseable archive_command)',
- },
- ;
+
#
push @{ $status{'Replication'} },
+
#
{ 'title' => 'Slave',
+
#
'value' => $slave || '(Missing, or unparseable archive_command)',
+
#
},
+
#
;
}
}
}
}