[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]


     [snips-users] rrdgraph.cgi

I notice that rrdgraph.cgi uses:

@rrdfiles = grep (/.+\.rrd/i, readdir(REALDIR) );

and then later:

foreach my $rfile (@rrdfiles)

which results in a more or less random display of the graphs. It's not random, of course - it's the directory order so it's always the same UNLESS you add or take away graphs, in which case it's not in any decipherable order or one that you can control.

I have changed the above line to read:

foreach my $rfile (sort @rrdfiles)

which at least puts them in alphabetical order.
Daniel MacKay
Canadian Information Processing Society, Information Services Professional
Halifax, Nova Scotia, Canada, +1 902.499.0488

Zyrion Traverse Network Monitoring & Network Management Software