From 2fc240e8828abf2a4a948d375f3d109cb64985b3 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Fri, 23 Dec 2022 20:03:31 +0100 Subject: [PATCH] Actually use day_seconds --- wireguard-logging.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireguard-logging.sh b/wireguard-logging.sh index 9ec1f27..65499e0 100644 --- a/wireguard-logging.sh +++ b/wireguard-logging.sh @@ -87,7 +87,7 @@ do continue fi - duration=$((hour_seconds + minute_seconds + second_seconds)) + duration=$((day_seconds + hour_seconds + minute_seconds + second_seconds)) user=`grep -rl ${peer} /etc/wireguard/clients/ | awk -F'/' {'print $5'}` #echo "User: $user , Duration: $duration, Peer: $peer, IP: $endpoint, Threshold: $threshold" if [ $duration -le $threshold ];then