Steven,
Actually, upon further inspection of the code, I believe the
"ascending", "descending" choices in the current code (the one in CVS)
should mean "sort by hostname ascending", "sort by hostname descending".
The line is cluster_view.php:81, and the __sort() function is defined at
ganglia.php:26. The actual sorting comes from a
uasort($metrics[$cluster][$metric], [ascending | descending
function]); -- ganglia.php:29
call. This should sort based on hostname. I do see that the sorting does
not affect the actual order of the metrics in cluster_view, for example.
I am working on why...
Federico
On Wednesday, August 7, 2002, at 12:37 PM, Steven A. DuChene wrote:
When I apply this patch to systems running the ganglia-php-client-1.0.4
code the main ganglia web page has a pull-down to apply a sort order.
Prior to applying the patch that pull down just has ascending and
descending as choices. After applying the patch a third choice appears
to sort by hostname.
Try it...
--
Steven A. DuChene [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.mindspring.com/~sduchene/
Federico
NPACI Rocks, SDSC, San Diego
GPG Fingerprint: 3C5E 47E7 BDF8 C14E ED92 92BB BA86 B2E6 0390 8845