Update power.inc.sh

This commit is contained in:
2023-12-30 16:21:42 -06:00
parent 15db6982a4
commit 6440dce8de

View File

@@ -335,7 +335,11 @@ CHECKPOWER(){
fi
done
fi
[ ${REPORT} -eq 0 ] && end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}"
if [ ${REPORT} -eq 0 ]; then
end=`date +%s`
runtime=$((end-start))
echo -e "\nruntime: ${runtime}"
fi
[ "${PW_ACTION}" != "" ] && [ ${REPORT} -eq 0 ] && echo
}