Open BradleyA opened 5 years ago
create-message.sh/create-display-message.sh --> if a host does not have any CONTAINERS (or any of the other variables being added below) the total is set to '' or /dev/null creating a false total value
CONTAINERS=$(grep -i CONTAINERS "${DATA_DIR}"/"${CLUSTER}"/"${NODE}" | awk -v v=$CONTAINERS '{print ($2 == "" ? 0 : $2) + v}') RUNNING=$(grep -i RUNNING "${DATA_DIR}"/"${CLUSTER}"/"${NODE}" | awk -v v=$RUNNING '{print $2 + v}') PAUSED=$(grep -i PAUSED "${DATA_DIR}"/"${CLUSTER}"/"${NODE}" | awk -v v=$PAUSED '{print $2 + v}') STOPPED=$(grep -i STOPPED "${DATA_DIR}"/"${CLUSTER}"/"${NODE}" | awk -v v=$STOPPED '{print $2 + v}') IMAGES=$(grep -i IMAGES "${DATA_DIR}"/"${CLUSTER}"/"${NODE}" | awk -v v=$IMAGES '{print $2 + v}')
create-message.sh/create-display-message.sh --> if a host does not have any CONTAINERS (or any of the other variables being added below) the total is set to '' or /dev/null creating a false total value
>>>