From 1037608c976e083166955619126bbbf425b0dfcb Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 17 Apr 2015 23:58:59 +0100 Subject: [PATCH] Fixed issue #313 --- functions/fn_logs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/fn_logs b/functions/fn_logs index ce3c79a2a..6518eeaa1 100644 --- a/functions/fn_logs +++ b/functions/fn_logs @@ -36,9 +36,13 @@ if [ $(find "${scriptlogdir}"/* -mtime +${logdays}|wc -l) -ne "0" ]; then gamecount=$(find "${scriptlogdir}"/* -mtime +${logdays}|wc -l) fi scriptcount=$(find "${scriptlogdir}"/* -mtime +${logdays}|wc -l) + echo "${consolelog}" if [ -n "${consolelog}" ]; then consolecount=$(find "${consolelogdir}"/* -mtime +${logdays}|wc -l) + else + consolecount=0 fi + count=$((${scriptcount} + ${consolecount})) if [ "${engine}" == "unreal2" ]; then count=$((${scriptcount} + ${consolecount} + ${gamecount}))