Add RIPEstat, make v4/v6 bytes display the same

Contributed by Erik Sundberg
This commit is contained in:
Manuel Kasper 2014-03-04 11:24:59 +11:00
parent ddc230b00d
commit 79ec0dbcf3
2 changed files with 5 additions and 4 deletions

View File

@ -23,7 +23,8 @@ $asset_cache_life ="604800"; # 604800 seconds = 7 days
$customlinks = array(
'PeeringDB' => 'http://www.peeringdb.com/view.php?asn=%as%',
'robtex' => 'http://www.robtex.com/as/as%as%.html',
'HE' => 'http://bgp.he.net/AS%as%'
'HE' => 'http://bgp.he.net/AS%as%',
'RIPEstat' => 'https://stat.ripe.net/AS%as%#tabId=at-a-glance'
);

View File

@ -54,11 +54,11 @@ $class = (($i % 2) == 0) ? "even" : "odd";
<?php endif; ?>
AS<?php echo $as; ?>: <?php echo $asinfo['descr']; ?>
</div>
<div class="small">~ <?php echo format_bytes($nbytes[0]); ?> in /
<div class="small">IPv4: ~ <?php echo format_bytes($nbytes[0]); ?> in /
<?php echo format_bytes($nbytes[1]); ?> out in the last 24 hours</div>
<?php if ($showv6): ?>
<div class="vsmall">IPv6: ~ <?php echo format_bytes($nbytes[2]); ?> in /
<?php echo format_bytes($nbytes[3]); ?> out</div>
<div class="small">IPv6: ~ <?php echo format_bytes($nbytes[2]); ?> in /
<?php echo format_bytes($nbytes[3]); ?> out in the last 24 hours</div>
<?php endif; ?>
<?php if (!empty($customlinks)): ?>