mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							3c0fcdd46b
						
					
				
				
					commit
					9284bc60ff
				
			@@ -19,7 +19,17 @@ if ($device['os'] == 'pulse') {
 | 
			
		||||
    $usage = str_replace('"', "", snmp_get($device, 'PULSESECURE-PSG-MIB::iveCpuUtil.0', '-OvQ'));
 | 
			
		||||
 | 
			
		||||
    if (is_numeric($usage)) {
 | 
			
		||||
        discover_processor($valid['processor'], $device, 'PULSESECURE-PSG-MIB::iveCpuUtil.0', '0', 'pulse-cpu', $descr,
 | 
			
		||||
 '100', $usage, null, null);
 | 
			
		||||
        discover_processor(
 | 
			
		||||
            $valid['processor'],
 | 
			
		||||
            $device,
 | 
			
		||||
            'PULSESECURE-PSG-MIB::iveCpuUtil.0',
 | 
			
		||||
            '0',
 | 
			
		||||
            'pulse-cpu',
 | 
			
		||||
            $descr,
 | 
			
		||||
            '100',
 | 
			
		||||
            $usage,
 | 
			
		||||
            null,
 | 
			
		||||
            null
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user