[freeside-commits] branch master updated. 8960c4e6ed107f83874647efe178f6e6845178bd

Ivan Kohler ivan at freeside.biz
Wed Sep 18 16:20:33 PDT 2019


The branch, master has been updated
       via  8960c4e6ed107f83874647efe178f6e6845178bd (commit)
      from  754f419aa67a58a58fa890e14b1239f3e42d23c6 (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 8960c4e6ed107f83874647efe178f6e6845178bd
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 18 16:19:51 2019 -0700

    fix slave IP display

diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html
index 7fb03eb2f..af58f3509 100644
--- 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_command') =~ / postgres\@([\w\.\-]+): /
+    FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]+):/
       ? $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 :/
-      push @{ $status{'Replication'} }, 
-        { 'title' => 'Slave',
-          'value' => $slave || '(Missing, or unparseable archive_command)',
-        },
-      ;
+      #push @{ $status{'Replication'} }, 
+      #  { 'title' => 'Slave',
+      #    'value' => $slave || '(Missing, or unparseable archive_command)',
+      #  },
+      #;
     }
   }
 

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

Summary of changes:
 httemplate/view/Status.html | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list