mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Updated query and color for 0% links
This commit is contained in:
		| @@ -14,8 +14,8 @@ | |||||||
|  |  | ||||||
| $tmp_devices = array(); | $tmp_devices = array(); | ||||||
| if (!empty($device['hostname'])) { | if (!empty($device['hostname'])) { | ||||||
|     $sql = ' WHERE `devices`.`hostname`=? OR `remote_hostname`=?'; |     $sql = ' WHERE `devices`.`hostname`=?'; | ||||||
|     $sql_array = array($device['hostname'],$device['hostname']); |     $sql_array = array($device['hostname']); | ||||||
| } else { | } else { | ||||||
|     $sql = ' WHERE 1'; |     $sql = ' WHERE 1'; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -253,7 +253,7 @@ $config['graph_colours']['purples'] = array('CC7CCC','AF63AF','934A93','773177', | |||||||
| $config['graph_colours']['default'] = $config['graph_colours']['blues']; | $config['graph_colours']['default'] = $config['graph_colours']['blues']; | ||||||
|  |  | ||||||
| // Map colors | // Map colors | ||||||
| $config['map_legend'] = array('0'=> '#ffffff', '10' => '#79847e', '20' => '#97ffca', '30' => '#a800ff', '40' => '#6c00ff', '50' => '#00d2ff', '60' => '#0090ff', '70' => '#ffe400', '80' => '#ffa200', '90' => '#ff6600', '100' => '#ff0000'); | $config['map_legend'] = array('0'=> '#aeaeae', '10' => '#79847e', '20' => '#97ffca', '30' => '#a800ff', '40' => '#6c00ff', '50' => '#00d2ff', '60' => '#0090ff', '70' => '#ffe400', '80' => '#ffa200', '90' => '#ff6600', '100' => '#ff0000'); | ||||||
|  |  | ||||||
| // Device page options | // Device page options | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user