From dac27f1f181f0c107ed623ca17e946fc9aafc045 Mon Sep 17 00:00:00 2001 From: Mark Drobnak Date: Sun, 9 Sep 2018 15:12:48 -0400 Subject: [PATCH] Only get the first gateway for chronometer Signed-off-by: Mark Drobnak --- 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 2a942df6..fe531513 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -243,7 +243,7 @@ get_sys_stats() { disk_total="${disk_raw[1]}" disk_perc="${disk_raw[2]}" - net_gateway=$(ip route | grep default | cut -d ' ' -f 3) + net_gateway=$(ip route | grep default | cut -d ' ' -f 3 | head -n 1) # Get DHCP stats, if feature is enabled if [[ "$DHCP_ACTIVE" == "true" ]]; then