[freeside-commits] branch FREESIDE_3_BRANCH updated. 3b824749559a044e9de1e596aaef87de728df847

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


The branch, FREESIDE_3_BRANCH has been updated
       via  3b824749559a044e9de1e596aaef87de728df847 (commit)
      from  f1c2b39355e0f78a6e90a107144210993d2e5f8c (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 3b824749559a044e9de1e596aaef87de728df847
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 18 16:19:57 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