allow previous=yes graph variable

git-svn-id: http://www.observium.org/svn/observer/trunk@3041 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-04-17 13:29:27 +00:00
parent bcc874ed94
commit 6c0ab6121d
2 changed files with 44 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ $to = (isset($_GET['to']) ? $_GET['to'] : time());
if ($from < 0) { $from = $to + $from; }
$period = $to - $from;
$prev_from = $from - $period;
$graphfile = $config['temp_dir'] . "/" . strgen() . ".png";
preg_match('/^(?P<type>[A-Za-z0-9]+)_(?P<subtype>.+)/', $_GET['type'], $graphtype);