/", $buffer, $matches)) { $inbw=$matches[1] * 8; } if (preg_match("/<\!-- cuout d (\d+) -->/", $buffer, $matches)) { $outbw=$matches[1] * 8; } } fclose($fd); # $data_time = filemtime($targetstring); } else { // some error code to go in here debug ("MRTG ReadData: Couldn't open ($targetstring). \n"); } debug ("MRTG ReadData: Returning ($inbw,$outbw,$data_time)\n"); return ( array($inbw,$outbw,$data_time) ); } } // vim:ts=4:sw=4: ?> /", $buffer, $matches)) { $inbw=$matches[1] * 8; } if (preg_match("/<\!-- cuout d (\d+) -->/", $buffer, $matches)) { $outbw=$matches[1] * 8; } } fclose($fd); # $data_time = filemtime($targetstring); $data_time = 0; } else { // some error code to go in here debug ("MRTG ReadData: Couldn't open ($targetstring). \n"); } debug ("MRTG ReadData: Returning ($inbw,$outbw,$data_time)\n"); return ( array($inbw,$outbw,$data_time) ); } } // vim:ts=4:sw=4: ?>
weathermap |
Subversion Repositories: |
Rev 4 | Rev 18 |
---|