mwan3: cleanup indenting in rpcd interface status
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
parent
e405b261d6
commit
321a52862a
1 changed files with 61 additions and 60 deletions
|
@ -79,8 +79,10 @@ get_mwan3_status() {
|
|||
local up="0"
|
||||
local enabled time_p time_n time_u time_d status track_status
|
||||
|
||||
if [ "${iface}" != "${iface_select}" ] && [ "${iface_select}" != "" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "${iface}" = "${iface_select}" ] || [ "${iface_select}" = "" ]; then
|
||||
track_status="$(mwan3_get_mwan3track_status "$1")"
|
||||
[ "$track_status" = "active" ] && running="1"
|
||||
time_p="$(cat "$MWAN3TRACK_STATUS_DIR/${iface}/TIME")"
|
||||
|
@ -139,7 +141,6 @@ get_mwan3_status() {
|
|||
done
|
||||
json_close_array
|
||||
json_close_object
|
||||
fi
|
||||
}
|
||||
|
||||
main () {
|
||||
|
|
Loading…
Reference in a new issue