mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Add RIPEstat, make v4/v6 bytes display the same
Contributed by Erik Sundberg
This commit is contained in:
parent
ddc230b00d
commit
79ec0dbcf3
@ -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'
|
||||
);
|
||||
|
||||
|
||||
|
@ -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)): ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user