This commit is contained in:
Ad Schellevis 2019-03-01 14:55:36 +01:00
parent 5fae3bcb7c
commit 3d07a9eb77
3 changed files with 1 additions and 6 deletions

View File

@ -56,8 +56,6 @@ function get_notices()
function close_notice($id)
{
$ids = array();
if (file_exists('/tmp/notices')) {
if ($id == 'all') {
@unlink('/tmp/notices');

View File

@ -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";

View File

@ -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'),