Well its kind of an ugly patch at the moment but essentially in graph.php
there are two occurances of the '$value' variable, and the line right before
the second occurance I inserted the following snipet
if (!$value) {
$command = RRDTOOL . " fetch ${rrd_file} AVERAGE "
."-s now-60 | head -3 | tail -1 | cut -f 2 -d ':'";
exec($command,$stdout);
$value="$stdout[0]";
}
Not the best solution in the world, I'm sure matt massie could quickly
change those multiple pipes in there to reading in each line and parsing
with php, or some other scheme all together -- still ugly to have an extra
call to rrdtool, but what else can be done? :)
Still somewhat reasonable for my need of just viewing a few graphs and
having the latest value '(now )' updated. As long as '&v=' isn't specified
on the 'graph.php?' it'll do an extra lookup with rrdtool and fetch a
reasonable value.