/", $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:
?>
WebSVN
- weathermap
- Blame
- Rev 137
- /lib/datasources/WeatherMapDataSource_mrtg.php.zaloha
weathermap |
Subversion Repositories: |
[/] [lib/] [datasources/] [WeatherMapDataSource_mrtg.php.zaloha] - Blame information for rev 137
Powered by WebSVN 2.2.1