User Tools

Site Tools


due_to_source_code_changing_1

This is an old revision of the document!


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

the original code(from 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) = find_limits($host, $metricname); ##### max/min for every host separatly
 ...
due_to_source_code_changing_1.1374755713.txt.gz · Last modified: 2013/07/25 14:35 by noskov