mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixup
This commit is contained in:
@@ -206,8 +206,9 @@ function rrdtool($command, $filename, $options) {
|
|||||||
|
|
||||||
|
|
||||||
function rrdtool_create($filename, $options) {
|
function rrdtool_create($filename, $options) {
|
||||||
|
global $config;
|
||||||
if( $config['rrdcached'] && $config['rrdtool_version'] >= 1.5 ) {
|
if( $config['rrdcached'] && $config['rrdtool_version'] >= 1.5 ) {
|
||||||
$chk = rrdtool('info', $filename);
|
$chk = rrdtool('info', $filename, '');
|
||||||
if (!empty($chk[0])) {
|
if (!empty($chk[0])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user