mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Don't include v6 stats inside v4
This commit is contained in:
parent
b0e9ea47de
commit
26a77d1d9d
@ -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