From 0306f4f19a5b2ddf9672cd7a63e113432190b90c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 10 Jul 2023 19:22:34 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 1b34470..c13c00d 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -182,7 +182,7 @@ MMSTART(){ echo "$(date) - 24hr session limit reached, restarting vpn & services" >> ${MM_LOGFILE} echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services" else - sessiontimeout=$(date -d@${MM_VPN_RESTART} -u "+%H%--%M%--%S%-") + sessiontimeout=$(date -d@${MM_VPN_RESTART} -u "-%H-%M-%S") IFS='-'; read -a session_timeout <<< "${sessiontimeout}"; unset IFS sessiontimeout="${session_timeout[0]} hr" [ ${session_timeout[1]} -gt 0 ] && sessiontimeout="${sessiontimeout}, ${session_timeout[1]} min"