Update mm-scripts.sh

This commit is contained in:
2023-04-26 21:40:44 -05:00
parent 5bc787df23
commit 5876aa648f

View File

@@ -578,7 +578,7 @@ MMSTATUS(){
echo -en "${idsCL[White]}${msg}${spc}${idsCL[White]}: ${idsCL[Default]}"
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
vpnuptime=`date +%s`-$(stat -c %Y ${MMFOLDER}/vpninfo)
vpnuptime=$(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vpninfo))
msg=" |- ${idsCL[Default]}VPN/Services Uptime"
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "${idsCL[White]}${msg}${spc}${idsCL[White]} : ${idsCL[Green]}$(SHOW_TIME ${vpnuptime})${idsCL[Default]}"