Changeset 20 for measure_scripts


Ignore:
Timestamp:
Oct 22, 2007, 5:04:39 PM (17 years ago)
Author:
george
Message:

Oprava

File:
1 edited

Legend:

Unmodified
Added
Removed
  • measure_scripts/traffic.php

    r19 r20  
    2525function Ping()
    2626
    27   //$File = fopen('/a/log/ping_nix.txt', 'r');
    28   //$Row = fgets($File);
    29   //fclose($File);
    3027  exec('ping nix.cz -c 1 |grep time=', $Row);
    31   $Parts = explode(' ', $Row);
     28  $Parts = explode(' ', $Row[0]);
    3229  if(count($Parts) > 6)
    3330  {
Note: See TracChangeset for help on using the changeset viewer.