Update power.inc.sh
This commit is contained in:
@@ -54,7 +54,7 @@ CHECKPOWER(){
|
|||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
||||||
REPORT=0
|
REPORT=0
|
||||||
wspc=8
|
wspc=9
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-a|-avg) avgdays=${2};;
|
-a|-avg) avgdays=${2};;
|
||||||
@@ -194,8 +194,7 @@ CHECKPOWER(){
|
|||||||
|
|
||||||
# echo
|
# echo
|
||||||
DIVIDER . lightCyan ${PRI_WIDTH}
|
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
|
if [ ${REPORT} -eq 0 ]; then
|
||||||
echo -en "\r\033[K"
|
echo -en "\r\033[K"
|
||||||
|
|||||||
Reference in New Issue
Block a user