Ignore:
Timestamp:
02/06/08 11:45:48 (16 years ago)
Author:
bastiaans
Message:

libtoga.php:

  • fix to ganglia domain name detection
File:
1 edited

Legend:

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

    r459 r461  
    733733                                        if( $jobs[$jobid][status] == 'R' ) {
    734734
     735                                                $domain         = $jobs[$jobid][domain];
     736                                                $domain_len     = 0 - strlen( $domain );
     737
    735738                                                // Let's see if Ganglia use's FQDN or short hostnames
    736739                                                //
     
    745748                                                foreach( $jobs[$jobid][nodes] as $node ) {
    746749
    747                                                         $domain = $jobs[$jobid][domain];
    748                                                         $domain_len = 0 - strlen( $domain );
    749 
     750                                                        // Only add domain name to the hostname if Ganglia is doing that too
     751                                                        //
    750752                                                        if( $this->fqdn )
    751753                                                        {
     
    761763                                                        }
    762764
    763                                                         //$host = $node.'.'.$jobs[$jobid][domain];
    764                                
    765765                                                        if( !isset( $nodes[$host] ) )
    766766                                                                $my_node = new NodeImage( $this->proc_cluster, $host );
Note: See TracChangeset for help on using the changeset viewer.