diff options
author | smos <seth.mos@dds.nl> | 2010-10-11 09:58:28 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2010-10-11 09:58:28 +0200 |
commit | d60f510a2c4ddc298e024b5b0d1a969f710c4249 (patch) | |
tree | c90b796f741dd1a6366a7f41110ffd2b4160e524 /usr/local/www/status_rrd_graph.php | |
parent | fea89a6356df155aec8b45736fe1a5e8ef5e259d (diff) | |
download | pfsense-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-x | usr/local/www/status_rrd_graph.php | 4 |
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"; |