mirror of
https://github.com/librenms/librenms.git
synced 2024-09-25 04:19:07 +00:00
fix mac account total graph (need to split into different types...)
git-svn-id: http://www.observium.org/svn/observer/trunk@2352 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
90dfbfa141
commit
096f551f6f
@ -61,7 +61,7 @@ foreach ($accs as $acc)
|
||||
$name = $peer['hostname'] . " " . makeshortif($peer['ifDescr']) . " (".$mac.")";
|
||||
}
|
||||
|
||||
if (dbFetchCell("SELECT count(*) FROM bgpPeers WHERE device_id = '".$acc['device_id']."' AND bgpPeerIdentifier = ?", array($addy['ipv4_address'])),0))
|
||||
if (dbFetchCell("SELECT count(*) FROM bgpPeers WHERE device_id = '".$acc['device_id']."' AND bgpPeerIdentifier = ?", array($addy['ipv4_address'])))
|
||||
{
|
||||
$peer_info = dbFetchRow("SELECT * FROM bgpPeers WHERE device_id = ? AND bgpPeerIdentifier = ?", array($acc['device_id'], $addy['ipv4_address']));
|
||||
$name .= " - AS".$peer_info['bgpPeerRemoteAs'];
|
||||
|
Loading…
Reference in New Issue
Block a user