From 02de752d1adc63f26ab23db49389c90fabd65e53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 16 Feb 2024 15:52:23 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 2ac079e4..82a3ed0f 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -51,7 +51,7 @@ AVERAGEPOWER(){ } CHECKPOWER(){ - start=`date +%s` + modstart=`date +%s` rm -f ${PW_TMPFOLDER}/*.hostpower* REPORT=0 wspc=10 @@ -521,7 +521,7 @@ CHECKPOWER(){ fi fi if [ ${REPORT} -eq 0 ]; then - [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && end=`date +%s`; runtime=$((end-start)); echo -e "${idsCL[Default]}runtime: ${runtime}s" + [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && modend=`date +%s`; runtime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${runtime}s" [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}" fi }