Fix rrd exists check (#15466)

Filename incorrect for test
This commit is contained in:
Tony Murray
2023-10-16 10:48:01 -07:00
committed by GitHub
parent 46e2c873c1
commit 921872369d

View File

@@ -524,6 +524,7 @@ class Rrd extends BaseDatastore
{
if ($this->rrdcached && version_compare($this->version, '1.5', '>=')) {
$check_output = implode($this->command('last', $filename, ''));
$filename = str_replace([$this->rrd_dir . '/', $this->rrd_dir], '', $filename);
return ! (str_contains($check_output, $filename) && str_contains($check_output, 'No such file or directory'));
} else {