- Fix tab destination device index.

This commit is contained in:
2025-06-30 00:15:48 +02:00
parent 378d16e302
commit 7576e3d4df
2 changed files with 7 additions and 7 deletions

View File

@@ -159,7 +159,7 @@ network_dst_tab_load()
tab_assign NETWORK_DST_TAB "${ndtl_id},Bytes_Sent" "${ndtl_bytes_sent}" tab_assign NETWORK_DST_TAB "${ndtl_id},Bytes_Sent" "${ndtl_bytes_sent}"
tab_assign NETWORK_DST_TAB "${ndtl_id},Uptime" "${ndtl_uptime}" tab_assign NETWORK_DST_TAB "${ndtl_id},Uptime" "${ndtl_uptime}"
tab_assign NETWORK_DST_DEV_IDX "${ndtl_dev}" "${ndtl_id}" tab_assign NETWORK_DST_DEV_IDX "${ndtl_device}" "${ndtl_id}"
ndtl_id=$(( ${ndtl_id} + 1)) ndtl_id=$(( ${ndtl_id} + 1))
fi fi
@@ -236,9 +236,9 @@ network_dst_tab_dump()
network_dst_tab_dev_lookup() network_dst_tab_dev_lookup()
{ {
dst_dev="$1" dst_device="$1"
dst_id=${NETWORK_DST_DEV_IDX["${dst_dev}"]} dst_id=${NETWORK_DST_DEV_IDX["${dst_device}"]}
} }

View File

@@ -12,7 +12,7 @@ time_in=$(date +%s%N)
# Header Print # Header Print
#-------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------
Header_Print () Header_Print()
{ {
case "${format}" case "${format}"
in in
@@ -71,7 +71,7 @@ Header_Print ()
# Tailer # Tailer
#-------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------
Footer_Print () Footer_Print()
{ {
case "${format}" case "${format}"
in in
@@ -94,7 +94,7 @@ Footer_Print ()
# Destination Status Board # Destination Status Board
#-------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------
Destination_Status_Board () Destination_Status_Board()
{ {
if [[ "${format}" == "html" ]] if [[ "${format}" == "html" ]]
then then
@@ -458,7 +458,7 @@ VPN_OpenVPN_Board()
# Main Board Print # Main Board Print
#-------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------
Main_Board_Print () Main_Board_Print()
{ {
if [[ "${format}" == "html" ]] if [[ "${format}" == "html" ]]
then then