mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 22:28:18 +00:00
Merge pull request #2408 from pi-hole/fix/2299
Only get the first gateway for chronometer
This commit is contained in:
commit
7a2f5f43f9
@ -243,7 +243,7 @@ get_sys_stats() {
|
|||||||
disk_total="${disk_raw[1]}"
|
disk_total="${disk_raw[1]}"
|
||||||
disk_perc="${disk_raw[2]}"
|
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
|
# Get DHCP stats, if feature is enabled
|
||||||
if [[ "$DHCP_ACTIVE" == "true" ]]; then
|
if [[ "$DHCP_ACTIVE" == "true" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user