mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
proxy.cgi: Use new system methods
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
31c46c0758
commit
875041991c
@@ -32,7 +32,7 @@ require "${General::swroot}/header.pl";
|
||||
|
||||
require "${General::swroot}/ids-functions.pl";
|
||||
|
||||
my @squidversion = `/usr/sbin/squid -v`;
|
||||
my @squidversion = &General::system_output("/usr/sbin/squid", "-v");
|
||||
my $http_port='81';
|
||||
my $https_port='444';
|
||||
|
||||
@@ -385,7 +385,7 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'}
|
||||
$errormessage = $Lang::tr{'advproxy errmsg mem cache size'};
|
||||
goto ERROR;
|
||||
}
|
||||
my @free = `/usr/bin/free`;
|
||||
my @free = &General::system_output("/usr/bin/free");
|
||||
$free[1] =~ m/(\d+)/;
|
||||
$cachemem = int $1 / 2048;
|
||||
if ($proxysettings{'CACHE_MEM'} > $cachemem) {
|
||||
|
||||
Reference in New Issue
Block a user