Here is another patch. Several months ago, the words "Cluster" & "Grid" were appended to the cluster/grid names in the page & graph titles. We already had these words in the titles and the redundancy looks bad. This patch only appends those words if they are not already in the names.
~Jason -- /------------------------------------------------------------------\ | Jason A. Smith Email: smit...@bnl.gov | | Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 | | Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 | | Upton, NY 11973-5000, U.S.A. | \------------------------------------------------------------------/
Index: monitor-core/web/graph.php =================================================================== --- monitor-core/web/graph.php (revision 1939) +++ monitor-core/web/graph.php (working copy) @@ -164,11 +164,17 @@ break; case 'cluster': - $title = "$clustername Cluster"; + if (preg_match('/cluster/i', $clustername)) + $title = $clustername; + else + $title = "$clustername Cluster"; break; case 'grid': - $title = "$gridname Grid"; + if (preg_match('/grid/i', $gridname)) + $title = $gridname; + else + $title = "$gridname Grid"; break; case 'host': Index: monitor-core/web/index.php =================================================================== --- monitor-core/web/index.php (revision 1939) +++ monitor-core/web/index.php (working copy) @@ -24,7 +24,10 @@ } else if ($context == "cluster" or $context == "cluster-summary") { - $title = "$clustername Cluster Report"; + if (preg_match('/cluster/i', $clustername)) + $title = "$clustername Report"; + else + $title = "$clustername Cluster Report"; include_once "./header.php"; include_once "./cluster_view.php"; }
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB
_______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers