mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Formatting + scrut updates
This commit is contained in:
		@@ -35,14 +35,14 @@ if ($src['hostname'] == $config['own_hostname']) {
 | 
			
		||||
    $filename = $filename_dir . $device['hostname'].'.rrd';
 | 
			
		||||
    if (!file_exists($filename_dir.$device['hostname'].'.rrd')) {
 | 
			
		||||
        // Try with dots in hostname replaced by underscores
 | 
			
		||||
        $filename = $filename_dir . str_replace(".", "_", $device['hostname']).'.rrd';
 | 
			
		||||
        $filename = $filename_dir . str_replace('.', '_', $device['hostname']).'.rrd';
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
else {
 | 
			
		||||
    $filename = $filename_dir . $device['hostname'] .'~'.$src['hostname'].'.rrd';
 | 
			
		||||
    if (!file_exists($filename)) {
 | 
			
		||||
        // Try with dots in hostname replaced by underscores
 | 
			
		||||
        $filename = $filename_dir . str_replace(".", "-", $device['hostname']) .'~'.$src['hostname'].'.rrd';
 | 
			
		||||
        $filename = $filename_dir . str_replace('.', '-', $device['hostname']) .'~'.$src['hostname'].'.rrd';
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user