Changeset 495 for trunk/web


Ignore:
Timestamp:
02/27/08 16:02:01 (16 years ago)
Author:
bastiaans
Message:

job_monarch/libtoga.php:

  • fix to domain detection
  • fix to if ( ) missing a )
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/libtoga.php

    r492 r495  
    689689                                }
    690690
    691                                 if( isset( $jobs[$jobid][domain] ) and isset( $jobs[$jobid][nodes] ) ) {
     691                                if( isset( $jobs[$jobid][nodes] ) ) {
    692692                       
    693693                                        $nr_nodes = count( $jobs[$jobid][nodes] );
     
    696696                                        {
    697697
    698                                                 if( isset( $jobs[$jobid][domain] )
     698                                                if( isset( $jobs[$jobid][domain] ) )
    699699                                                {
    700700                                                        $domain         = $jobs[$jobid][domain];
     
    713713                                                }
    714714
    715                                                 foreach( $jobs[$jobid][nodes] as $node ) {
     715                                                foreach( $jobs[$jobid][nodes] as $node )
     716                                                {
    716717
    717718                                                        // Only add domain name to the hostname if Ganglia is doing that too
    718719                                                        //
    719                                                         if( ( $this->fqdn ) && ( isset( $jobs[$jobid][domain] ) )
     720                                                        if( $this->fqdn && isset( $jobs[$jobid][domain] ) )
    720721                                                        {
    721722                                                                if( substr( $node, $domain_len ) != $domain )
Note: See TracChangeset for help on using the changeset viewer.