Ignore:
Timestamp:
Nov 9, 2008, 8:05:48 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Korekce systémových skriptů po aktualizaci Centrály
File:
1 edited

Legend:

Unmodified
Added
Removed
  • system/statistic/traffic.php

    r111 r112  
    11<?php
    22
    3 include('../../html/global.php');
     3chdir('/a/www/centrala/');
     4include('global.php');
    45$Database->select_db('statistic');
    56$Config['Web']['ShowError'] = 1;
     
    144145
    145146  $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);
    148149 
    149150  // Na�en�teploty
     
    185186    'ping_nix' => $Ping,
    186187    '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']);
    188189//    'wlan0_down' => $NetworkStat['wlan0']['down_avg'], 'wlan0_up' => $NetworkStat['wlan0']['up_avg'],
    189190//    'wlan1_down' => $NetworkStat['wlan1']['down_avg'], 'wlan1_up' => $NetworkStat['wlan1']['up_avg'],
    190191//    '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']);
    192193  $Database->insert('traffic', $NewItem);
     194
    193195  //echo(serialize($NewItem)."\n");
    194196    //$LevelDivider = 10;
Note: See TracChangeset for help on using the changeset viewer.