Changeset 112 for system/statistic/traffic.php
- Timestamp:
- Nov 9, 2008, 8:05:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/statistic/traffic.php
r111 r112 1 1 <?php 2 2 3 include('../../html/global.php'); 3 chdir('/a/www/centrala/'); 4 include('global.php'); 4 5 $Database->select_db('statistic'); 5 6 $Config['Web']['ShowError'] = 1; … … 144 145 145 146 $Database->select_db('statistic'); 146 $HDD = round(disk_free_space('/') /1024);147 $HDD2 = round(disk_free_space('/mnt/ sda1')/1024);147 $HDD = round(disk_free_space('/') / 1024); 148 $HDD2 = round(disk_free_space('/mnt/Samsung500') / 1024); 148 149 149 150 // Na�en�teploty … … 185 186 'ping_nix' => $Ping, 186 187 'inet_down' => $NetworkStat['eth1']['down_avg'], 'inet_up' => $NetworkStat['eth1']['up_avg'], 187 'eth0_down' => $NetworkStat['eth0']['down_avg'], 'eth0_up' => $NetworkStat['eth0']['up_avg'] ,188 'eth0_down' => $NetworkStat['eth0']['down_avg'], 'eth0_up' => $NetworkStat['eth0']['up_avg']); 188 189 // 'wlan0_down' => $NetworkStat['wlan0']['down_avg'], 'wlan0_up' => $NetworkStat['wlan0']['up_avg'], 189 190 // 'wlan1_down' => $NetworkStat['wlan1']['down_avg'], 'wlan1_up' => $NetworkStat['wlan1']['up_avg'], 190 191 // 'wlan2_down' => $NetworkStat['wlan2']['down_avg'], 'wlan2_up' => $NetworkStat['wlan2']['up_avg'], 191 'eth2_down' => $NetworkStat['eth2']['down_avg'], 'eth2_up' => $NetworkStat['eth2']['up_avg']);192 // 'eth2_down' => $NetworkStat['eth2']['down_avg'], 'eth2_up' => $NetworkStat['eth2']['up_avg']); 192 193 $Database->insert('traffic', $NewItem); 194 193 195 //echo(serialize($NewItem)."\n"); 194 196 //$LevelDivider = 10;
Note:
See TracChangeset
for help on using the changeset viewer.