From 5fdc007742e2300afcbeccd0927a183b53ac404b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 4 Jan 2024 20:19:26 -0600 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 17d7921..cd8c0d3 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1704,7 +1704,7 @@ TEST(){ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then if [ -f ${TMPFOLDER}/mm.stop ]; then - stoppedsince=`date +%s`-$(stat -c %Y ${TMPFOLDER}/mm.stop) + stoppedsince=$(expr `date +%s` - $(stat -c %Y ${TMPFOLDER}/mm.stop)) stopmsg="${idsCL[Yellow]}The system has currently been stopped for '$(SHOW_TIME ${stoppedsince})'.\n${idsCL[LightCyan]}(You'll need to run \"mm start\" to start services again)${idsCL[Default]}" fi case $action in