diff --git a/mm-scripts.sh b/mm-scripts.sh index e7721e6..36ab638 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1434,6 +1434,10 @@ USAGE(){ echo -e " ${idsCL[Cyan]}${srvcscheck}${idsCL[Default]}" echo } +TEST(){ + /usr/bin/vnstat -t + /usr/bin/vnstat -d -b $(date --date="-3 day" +%Y-%m-%d) -e $(date +%Y-%m-%d) +} if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then @@ -1447,7 +1451,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then setup) MMSETUP;; vpninfo) GETVPNINFO;; speedtest) VPNSPEEDTEST;; - + test) TEST;; stop) MMSTOP;; start | check) if [ -f ${TMPFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then