Changeset 129 for www/statistic/bandwidth.php
- Timestamp:
- Jan 5, 2009, 7:31:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/statistic/bandwidth.php
r4 r129 41 41 if($Host['vpn'] == 1) $Host['IP'] = ToVpnIp($Host); 42 42 43 $Host['traffic_down'] = $HostsStat[$Host['IP']]['traffic_avg_down']; 44 $Host['traffic_up'] = $HostsStat[$Host['IP']]['traffic_avg_up']; 43 if(array_key_exists($Host['IP'], $HostsStat)) 44 { 45 $Host['traffic_down'] = $HostsStat[$Host['IP']]['traffic_avg_down']; 46 $Host['traffic_up'] = $HostsStat[$Host['IP']]['traffic_avg_up']; 47 } else 48 { 49 $Host['traffic_down'] = 0; 50 $Host['traffic_up'] = 0; 51 } 45 52 46 53 if($Host['name'] == 'CENTRALA') $Host['IP'] = $Host['external_ip'];
Note:
See TracChangeset
for help on using the changeset viewer.