"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cluster_view.php" between
ganglia-web-3.7.1.tar.gz and ganglia-web-3.7.2.tar.gz

About: Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids (Ganglia Web UI).

cluster_view.php  (ganglia-web-3.7.1):cluster_view.php  (ganglia-web-3.7.2)
skipping to change at line 259 skipping to change at line 259
$size = 'small'; $size = 'small';
// set host zoom class based on the size of the graph shown // set host zoom class based on the size of the graph shown
if (isset($conf['zoom_support']) && $conf['zoom_support'] === true) if (isset($conf['zoom_support']) && $conf['zoom_support'] === true)
$additional_host_img_html_args = "class=host_${size}_zoomable"; $additional_host_img_html_args = "class=host_${size}_zoomable";
foreach ($sorted_hosts as $host => $value) { foreach ($sorted_hosts as $host => $value) {
if (isset($hosts_down[$host]) and $hosts_down[$host] && isset($conf['cluster _hide_down_hosts']) && $conf['cluster_hide_down_hosts']) { if (isset($hosts_down[$host]) and $hosts_down[$host] && isset($conf['cluster _hide_down_hosts']) && $conf['cluster_hide_down_hosts']) {
// If we're hiding DOWN hosts, we skip to next iteration of the loop. // If we're hiding DOWN hosts, we skip to next iteration of the loop.
continue; continue;
} }
$host_url = rawurlencode($host); $host_url = ($case_sensitive_hostnames) ? rawurlencode($host) : strtolower(r awurlencode($host));
$host_link="\"?c=$cluster_url&h=$host_url&$get_metric_string\""; $host_link="\"?c=$cluster_url&h=$host_url&$get_metric_string\"";
$textval = ""; $textval = "";
//echo "$host: $value, "; //echo "$host: $value, ";
if (isset($hosts_down[$host]) and $hosts_down[$host]) { if (isset($hosts_down[$host]) and $hosts_down[$host]) {
$last_heartbeat = $cluster['LOCALTIME'] - $hosts_down[$host]['REPORTED']; $last_heartbeat = $cluster['LOCALTIME'] - $hosts_down[$host]['REPORTED'];
$age = $last_heartbeat > 3600 ? $age = $last_heartbeat > 3600 ?
uptime($last_heartbeat) : "${last_heartbeat}s"; uptime($last_heartbeat) : "${last_heartbeat}s";
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS