From 10139241f5168e53015dd8e238f44289882c76e3 Mon Sep 17 00:00:00 2001 From: WaLLy3K Date: Fri, 26 May 2017 17:57:27 +1000 Subject: [PATCH] Fix output IPv4 addr when removing CIDR notation (#1498) --- advanced/Scripts/chronometer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index 763091d8..d9b7d05b 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -361,7 +361,7 @@ chronoFunc() { printFunc " HDD usage: " "$disk_perc" printf "%s(%s)%s\n" "$COL_DARK_GRAY" "Used: $(hrBytes "$disk_used") of $(hrBytes "$disk_total")" "$COL_NC" - printFunc " LAN addr: " "${IPV4_ADDRESS:0:-3}" + printFunc " LAN addr: " "${IPV4_ADDRESS/\/*/}" printf "%s(%s)%s\n" "$COL_DARK_GRAY" "Gateway: $net_gateway" "$COL_NC" if [[ "$DHCP_ACTIVE" == "true" ]]; then