mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Merge pull request #49 from clobrother/master
Don't include v6 stats inside v4
This commit is contained in:
commit
523578f432
@ -119,13 +119,15 @@ function getasstats_top($ntop, $statfile) {
|
||||
|
||||
for ($i = 1; $i < count($els); $i++) {
|
||||
if (strpos($cols[$i], "_in") !== false) {
|
||||
$tot_in += $els[$i];
|
||||
if (strpos($cols[$i], "_v6_") !== false)
|
||||
$tot_v6_in += $els[$i];
|
||||
else
|
||||
$tot_in += $els[$i];
|
||||
} else {
|
||||
$tot_out += $els[$i];
|
||||
if (strpos($cols[$i], "_v6_") !== false)
|
||||
$tot_v6_out += $els[$i];
|
||||
else
|
||||
$tot_out += $els[$i];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user