diff --git a/mm-scripts.sh b/mm-scripts.sh index 0aba537..c9bc046 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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]}"