mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
minor cleanups, closes https://github.com/opnsense/core/pull/3112
This commit is contained in:
parent
5fae3bcb7c
commit
3d07a9eb77
@ -56,8 +56,6 @@ function get_notices()
|
||||
|
||||
function close_notice($id)
|
||||
{
|
||||
$ids = array();
|
||||
|
||||
if (file_exists('/tmp/notices')) {
|
||||
if ($id == 'all') {
|
||||
@unlink('/tmp/notices');
|
||||
|
||||
@ -30,7 +30,7 @@ function rrd_create($rrdcreatecmd)
|
||||
{
|
||||
$rrdcreateoutput = array();
|
||||
$rrdcreatereturn = 0;
|
||||
$_gb = exec("$rrdcreatecmd 2>&1", $rrdcreateoutput, $rrdcreatereturn);
|
||||
exec("$rrdcreatecmd 2>&1", $rrdcreateoutput, $rrdcreatereturn);
|
||||
if ($rrdcreatereturn != 0) {
|
||||
$rrdcreateoutput = implode(" ", $rrdcreateoutput);
|
||||
log_error(sprintf('RRD create failed exited with %s, the error is: %s', $rrdcreatereturn, $rrdcreateoutput));
|
||||
@ -119,7 +119,6 @@ function rrd_configure($verbose = false)
|
||||
$rrdupdatesh .= "do\n";
|
||||
$rrdupdatesh .= "";
|
||||
|
||||
$i = 0;
|
||||
$ifdescrs = get_configured_interface_with_descr();
|
||||
/* IPsec counters */
|
||||
$ifdescrs['ipsec'] = "IPsec";
|
||||
@ -296,7 +295,6 @@ function rrd_configure($verbose = false)
|
||||
$rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$cellular N:\"\$GSTATS\"";
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
|
||||
/* System only statistics */
|
||||
$ifname = "system";
|
||||
|
||||
@ -39,7 +39,6 @@ function filter_tos_values()
|
||||
'lowdelay' => gettext('lowdelay'),
|
||||
'critical' => gettext('critical'),
|
||||
'inetcontrol' => gettext('inetcontrol'),
|
||||
'lowdelay' => gettext('lowdelay'),
|
||||
'netcontrol' => gettext('netcontrol'),
|
||||
'throughput' => gettext('throughput'),
|
||||
'reliability' => gettext('reliability'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user