mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Merge pull request #1715 from laf/rrdoptions
Updated rrdtool_update() to use new array format
This commit is contained in:
		@@ -73,13 +73,13 @@ if ($device['os_group'] == 'cisco') {
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // FIXME - use memcached to make sure these values don't go backwards?
 | 
			
		||||
            $rrdupdate = array(
 | 
			
		||||
                $b_in,
 | 
			
		||||
                $b_out,
 | 
			
		||||
                $p_in,
 | 
			
		||||
                $p_out,
 | 
			
		||||
            $fields = array(
 | 
			
		||||
                'IN'   => $b_in,
 | 
			
		||||
                'OUT'  => $b_out,
 | 
			
		||||
                'PIN'  => $p_in,
 | 
			
		||||
                'POUT' => $p_out,
 | 
			
		||||
            );
 | 
			
		||||
            rrdtool_update($rrdfile, $rrdupdate);
 | 
			
		||||
            rrdtool_update($rrdfile, $fields);
 | 
			
		||||
 | 
			
		||||
            if ($acc['update']) {
 | 
			
		||||
                // Do Updates
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user