Updated version checking in rrdtool() function

This commit is contained in:
laf
2015-12-02 19:21:01 +00:00
parent 78a688fc47
commit 55d3242bd6
+2 -2
View File
@@ -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) {