Changeset 22 for measure_scripts
- Timestamp:
- Oct 22, 2007, 5:14:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
measure_scripts/traffic.php
r21 r22 26 26 function Ping() 27 27 { 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 29 31 $Parts = explode(' ', $Row[0]); 30 32 if(count($Parts) > 6)
Note:
See TracChangeset
for help on using the changeset viewer.