mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
Updated version checking in rrdtool() function
This commit is contained in:
@@ -167,8 +167,8 @@ function rrdtool($command, $filename, $options) {
|
||||
global $config, $debug, $rrd_pipes, $console_color;
|
||||
|
||||
if ($config['rrdcached'] &&
|
||||
($config['rrdtool_version'] >= 1.5.5 ||
|
||||
($config['rrdtool_version'] >= 1.5 && $command != "tune") ||
|
||||
(version_compare($config['rrdtool_version'], '1.5.5', '>=') ||
|
||||
(version_compare($config['rrdtool_version'], '1.5', '>=') && $command != "tune") ||
|
||||
($command != "create" && $command != "tune"))
|
||||
) {
|
||||
if (isset($config['rrdcached_dir']) && $config['rrdcached_dir'] !== false) {
|
||||
|
||||
Reference in New Issue
Block a user