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

Omezení timeoutu na 1 sekundu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • measure_scripts/traffic.php

    r21 r22  
    2626function Ping()
    2727
    28   exec('ping nix.cz -c 1 |grep time=', $Row);
     28  exec('ping nix.cz -c 1 -W 1|grep time=', $Row);
     29  // W - timeout in seconds
     30  // c - ping count
    2931  $Parts = explode(' ', $Row[0]);
    3032  if(count($Parts) > 6)
Note: See TracChangeset for help on using the changeset viewer.