From 9fdcbbf92a42f9d7b110a1a88d8a04eb3f17eb7b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 12 Jan 2024 19:26:15 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 8b8ffeb5..0f915243 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -872,7 +872,7 @@ PDUCONTROL(){ port=$(expr ${p} + 1) [ ${PORT_POWER[${p}]} -eq 1 ] && portpower_disp="${idsCL[Green]}ON" || portpower_disp="${idsCL[LightRed]}OFF" [ ${port} -lt 10 ] && pp=" ${port}" || pp=${port} - c=0; spc=''; spc1=`expr 28 - ${#port}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done + c=0; spc=''; spc1=`expr 28 - ${#PORT_DESC[${p}]}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done echo -e "${pp}) ${idsCL[LightCyan]}${PORT_DESC[${p}]}${spc}${idsCL[Default]}: ${portpower_disp}${idsCL[Default]}" done echo -e ""