Ignore:
Timestamp:
Jan 19, 2017, 12:01:07 PM (7 years ago)
Author:
gegorbet
Message:

various minor fixes/mods to gridctl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cluster_status.php

    r25 r26  
    44include "$us3bin/listen-config.php";
    55
    6 if ( ! preg_match( "/localhost/", $dbhost ) )
     6if ( ! preg_match( "/_local/", $class_dir ) )
    77{
    88   $xml  = get_data();
     
    1818foreach ( $data as $item )
    1919{
    20    update( $item[ 'cluster' ], $item[ 'queued' ], $item[ 'status' ], $item[ 'running' ] );
     20   if ( ! preg_match( "/error/", $item[ 'running' ] ) )
     21      update( $item[ 'cluster' ], $item[ 'queued' ], $item[ 'status' ], $item[ 'running' ] );
    2122}
    2223
     
    170171   global $dbhost;
    171172   global $org_domain;
    172 
    173    if ( preg_match( "/localhost/", $dbhost ) )
     173   global $class_dir;
     174
     175   if ( preg_match( "/_local/", $class_dir ) )
    174176   {
    175177      if ( preg_match( "/attlocal/", $org_domain ) )
Note: See TracChangeset for help on using the changeset viewer.