Update power.inc.sh

This commit is contained in:
2024-02-11 09:14:43 -06:00
parent 84b4b75a64
commit 33327062ce

View File

@@ -54,7 +54,7 @@ CHECKPOWER(){
start=`date +%s`
rm -f ${PW_TMPFOLDER}/*.hostpower*
REPORT=0
wspc=8
wspc=9
while [ $# -gt 0 ]; do
case "$1" in
-a|-avg) avgdays=${2};;
@@ -194,8 +194,7 @@ CHECKPOWER(){
# echo
DIVIDER . lightCyan ${PRI_WIDTH}
c=0; spc=''; spc1=`expr ${wspc} - ${#AD}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done
echo -e "${idsCL[LightCyan]}Totals : Amps Watts${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Totals : Amps Watts${idsCL[Default]}"
if [ ${REPORT} -eq 0 ]; then
echo -en "\r\033[K"