ffmyk influx minimize memory usage

master
Niklas Yann Wettengel 7 years ago
parent ca323efbf4
commit d2270e2e50

@ -2,9 +2,9 @@
require('func.php'); require('func.php');
$data = file_get_contents('/var/lib/dhcp/dhcpd.leases'); $data = shell_exec("grep -e 'lease [[:digit:]\.]\+ {' -e '\s\+ends' /var/lib/dhcp/dhcpd.leases");
preg_match_all('/lease ([\d\.]+) \{[^\}]+ends \d+ (\d{4}\/\d{2}\/\d{2} \d+:\d{2}:\d{2});[^\}]+}/s', $data, $match); preg_match_all('/lease ([\d\.]+) \{\n\s+ends \d+ (\d{4}\/\d{2}\/\d{2} \d+:\d{2}:\d{2});/s', $data, $match);
unset($data, $match[0]); unset($data, $match[0]);

Loading…
Cancel
Save