From a934a25f2113b8f655df783ebbd47ff5b69b9538 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 1 Aug 2017 09:24:32 +0200 Subject: [PATCH] net/mwan3: fix ubus json datatyp Signed-off-by: Florian Eckert --- net/mwan3/files/usr/libexec/rpcd/mwan3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/mwan3/files/usr/libexec/rpcd/mwan3 b/net/mwan3/files/usr/libexec/rpcd/mwan3 index 6bb6f8dd17..8b7b14ea6a 100755 --- a/net/mwan3/files/usr/libexec/rpcd/mwan3 +++ b/net/mwan3/files/usr/libexec/rpcd/mwan3 @@ -53,9 +53,9 @@ get_mwan3_status() { json_add_object "${iface}" json_add_int age "$age" - json_add_string "score" "$(cat "$MWAN3_STATUS_DIR/${iface}/SCORE")" - json_add_string "lost" "$(cat "$MWAN3_STATUS_DIR/${iface}/LOST")" - json_add_string "turn" "$(cat "$MWAN3_STATUS_DIR/${iface}/TURN")" + json_add_int "score" "$(cat "$MWAN3_STATUS_DIR/${iface}/SCORE")" + json_add_int "lost" "$(cat "$MWAN3_STATUS_DIR/${iface}/LOST")" + json_add_int "turn" "$(cat "$MWAN3_STATUS_DIR/${iface}/TURN")" json_add_string "status" "$(cat "$MWAN3_STATUS_DIR/${iface}/STATUS")" json_add_boolean "running" "${running}" json_add_array "track_ip" -- 2.30.2