mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(legacy) move default_state_size to filter.inc
This commit is contained in:
parent
3fd45bad23
commit
eb7e7a04f6
@ -3552,4 +3552,18 @@ function filter_get_antilockout_ports($wantarray = false) {
|
||||
|
||||
}
|
||||
|
||||
function default_state_size()
|
||||
{
|
||||
/* get system memory amount */
|
||||
$memory = get_memory();
|
||||
$physmem = $memory[0];
|
||||
|
||||
/* Be cautious and only allocate 10% of system memory to the state table */
|
||||
$max_states = (int) ($physmem/10)*1000;
|
||||
|
||||
return $max_states;
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@ -574,19 +574,6 @@ function is_fqdn($fqdn) {
|
||||
return($hostname);
|
||||
}
|
||||
|
||||
function default_state_size()
|
||||
{
|
||||
/* get system memory amount */
|
||||
$memory = get_memory();
|
||||
$physmem = $memory[0];
|
||||
|
||||
/* Be cautious and only allocate 10% of system memory to the state table */
|
||||
$max_states = (int) ($physmem/10)*1000;
|
||||
|
||||
return $max_states;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* load_crypto() - Load crypto modules if enabled in config.
|
||||
*/
|
||||
|
||||
@ -5,6 +5,7 @@ if(Connection_Aborted()) {
|
||||
}
|
||||
|
||||
require_once("config.inc");
|
||||
require_once("filter.inc");
|
||||
require_once("pfsense-utils.inc");
|
||||
|
||||
function get_uptime_sec() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user