Changeset 19 for measure_scripts
- Timestamp:
- Oct 22, 2007, 5:00:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
measure_scripts/traffic.php
r18 r19 78 78 $cpuIDLEprev=$cpuIDLE; 79 79 return(100-round($cpuIDLEcent*100)/100); 80 }81 82 function Ping()83 {84 $File = fopen('/a/log/ping_nix.txt', 'r');85 $Row = fgets($File);86 fclose($File);87 $Parts = explode(' ', $Row);88 if(count($Parts) > 6)89 {90 $Time = $Parts[7];91 $TimeParts = explode('=', $Time);92 return($TimeParts[1]);93 } else return(0);94 80 } 95 81
Note:
See TracChangeset
for help on using the changeset viewer.