From 72fef64c4d55c611f5746728d4c866fd10f58612 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 21 Jan 2025 00:00:02 +0200 Subject: [PATCH] Fix variable being in the wrong scope --- bandwidth/rotate.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bandwidth/rotate.pl b/bandwidth/rotate.pl index 45b579909..72004a0a6 100755 --- a/bandwidth/rotate.pl +++ b/bandwidth/rotate.pl @@ -6,9 +6,9 @@ use Time::Local; require './bandwidth-lib.pl'; our (%config, $module_config_file, $module_var_directory, $pid_file, - $syslog_module, $syslog_journald); + $syslog_module, $syslog_journald, $bandwidth_log); -my ($logfh, $timestamp_file, $bandwidth_log, $lastline); +my ($logfh, $timestamp_file, $lastline); # Detect firewall system if needed if (!$config{'firewall_system'}) {