summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2010-10-11 09:58:28 +0200
committersmos <seth.mos@dds.nl>2010-10-11 09:58:28 +0200
commitd60f510a2c4ddc298e024b5b0d1a969f710c4249 (patch)
treec90b796f741dd1a6366a7f41110ffd2b4160e524 /usr/local/www/status_rrd_graph.php
parentfea89a6356df155aec8b45736fe1a5e8ef5e259d (diff)
downloadpfsense-d60f510a2c4ddc298e024b5b0d1a969f710c4249.zip
pfsense-d60f510a2c4ddc298e024b5b0d1a969f710c4249.tar.gz
Unset the end time if we are graphing for the "current" period. That makes the graphs refresh correctly.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 2eedd90..b4f6911 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -560,7 +560,9 @@ function get_dates($curperiod, $graph) {
}
$dates = get_dates($curperiod, $graph);
$start = $dates['start'];
- $end = $dates['end'];
+ if($curperiod == "current") {
+ $end = $dates['end'];
+ }
/* generate update events utilizing prototype $('') feature */
echo "\n";
echo "\t\t\$('{$graph}-{$curoption}-{$curdatabase}').src='status_rrd_graph_img.php?start={$start}&end={$end}&graph={$graph}&database={$curdatabase}&style={$curstyle}&tmp=' + randomid;\n";
OpenPOWER on IntegriCloud