User Tools

Site Tools


due_to_source_code_changing_1

The file “cluster_view.php” in the ganglia home directory(/usr/share/ganglia/) was changed:

the original code(at line 168)
   ...
   $sorted_hosts = array_merge($down_hosts, $sorted_hosts);
   # First pass to find the max value in all graphs for this 
   # metric. The $start,$end variables comes from get_context.php,
   # included in index.php.
   list($min, $max) = find_limits($sorted_hosts, $metricname);  ### max/min from max/min of all hosts
   # Second pass to output the graphs or metrics.
   $i = 1;
   foreach ( $sorted_hosts as $host => $value )
   { ...
the changed code
   ...
   $sorted_hosts = array_merge($down_hosts, $sorted_hosts);
   # First pass to find the max value in all graphs for this
   # metric. The $start,$end variables comes from get_context.php, 
   # included in index.php.
   #list($min, $max) = find_limits($sorted_hosts, $metricname);  ### max/min from max/min of all hosts
   # Second pass to output the graphs or metrics.
   $i = 1;
   foreach ( $sorted_hosts as $host => $value )
   {
      list($min, $max) = array(0,0); ###### max/min for every host separatly
   ...
 
due_to_source_code_changing_1.txt · Last modified: 2013/08/07 17:22 by noskov