Fix Smokeping without integration (#11548)

This commit is contained in:
Tony Murray 2020-05-06 09:13:21 -05:00 committed by GitHub
parent c48943550b
commit 598c8c0848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,9 @@ class Smokeping
private function filenameToHostname($name)
{
$name = str_replace('.rrd', '', $name);
return str_replace('_', '.', $name);
if (Config::get('smokeping.integration') === true) {
$name = str_replace('_', '.', $name);
}
return str_replace('.rrd', '', $name);
}
}