From 018a5f21d2e7669b19f7807045bf7debe4186d25 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 25 Oct 2023 19:03:52 -0500 Subject: [PATCH] Update status.inc --- inc/status.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 874b5f56..4bb0fcca 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -2,7 +2,7 @@ STATUS(){ start=`date +%s` - cw=40; + PRI_cw=${PRI_CW}; ST_ACTION=${1} if [ "${ST_ACTION}" = "sync" ]; then @@ -61,7 +61,7 @@ STATUS(){ for srvc in "${LOCAL_SERVICES[@]}"; do if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "report" ]; then - c=0; spc='' + c=0; cw=${PRI_CW}; spc='' spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]} until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done else @@ -183,7 +183,7 @@ STATUS(){ if [ ${NOGOCHK} == true ]; then if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "report" ]; then - c=0; cw=40; spc=''; spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + c=0; cw=${PRI_CW}; spc=''; spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done else spc=' ' fi @@ -248,7 +248,7 @@ STATUS(){ # if [ ${NOGOCHK} = true ]; then # if [ "${ST_ACTION}" != "check" ]; then # if [ "${ST_ACTION}" != "report" ]; then - # c=0; cw=40; spc='' + # c=0; cw=${PRI_CW}; spc='' # spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]} # until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done # else @@ -341,7 +341,7 @@ STATUS(){ if [ ${NOGOCHK} == true ]; then if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "report" ]; then - c=0; spc='' + c=0; cw=${PRI_CW}; spc='' spc1=`expr ${cw} - ${#NM_DOCKER_DESC[${docker}]}` until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done else @@ -489,7 +489,7 @@ STATUS(){ for rcheck in "${!var2}"; do if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "report" ]; then - c=0; spc=''; spc1=${cw}-${#NM_REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + c=0; cw=${PRI_CW}; spc=''; spc1=${cw}-${#NM_REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done else spc=' ' fi