mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user