Révision 96fcabaa
Ajouté par Renato Botelho il y a presque 10 ans
etc/inc/filter.inc | ||
---|---|---|
106 | 106 |
else |
107 | 107 |
$maxstates = 150000; |
108 | 108 |
// nmbflows cpu count * ($maxstates * 2) |
109 |
$cpus = trim(`/sbin/sysctl -n kern.smp.cpus`, " \n");
|
|
109 |
$cpus = trim(exec('/sbin/sysctl -n kern.smp.cpus'), " \n");
|
|
110 | 110 |
$nmbflows = ($cpus*($maxstates*2)); |
111 | 111 |
// Flowtable currently only works on 8.0 |
112 | 112 |
if(get_freebsd_version() == "8") { |
Formats disponibles : Unified diff
Replace some backticks by exec ans simplify commands