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

Oprava: Odstranění duplikátu funkce Ping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • measure_scripts/traffic.php

    r18 r19  
    7878  $cpuIDLEprev=$cpuIDLE;
    7979  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);
    9480}
    9581
Note: See TracChangeset for help on using the changeset viewer.