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:
Adam Amstrong 2011-05-20 15:24:46 +00:00
parent 90dfbfa141
commit 096f551f6f

View File

@ -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'];