mirror of
https://github.com/librenms/librenms.git
synced 2024-09-28 22:06:25 +00:00
Set timeperiods to current polling-period.
This makes caching of graphs a lot easier.
This commit is contained in:
parent
882d76c216
commit
d2ecfdd9e4
@ -1755,6 +1755,7 @@ if ($config['memcached']['enable'])
|
||||
# Set some times needed by loads of scripts (it's dynamic, so we do it here!)
|
||||
|
||||
$config['time']['now'] = time();
|
||||
$config['time']['now'] -= $config['time']['now']%300;
|
||||
$config['time']['fourhour'] = $config['time']['now'] - 14400; //time() - (4 * 60 * 60);
|
||||
$config['time']['sixhour'] = $config['time']['now'] - 21600; //time() - (6 * 60 * 60);
|
||||
$config['time']['twelvehour'] = $config['time']['now'] - 43200; //time() - (12 * 60 * 60);
|
||||
|
Loading…
Reference in New Issue
Block a user