net/mwan3: fix ubus json datatyp
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 1 Aug 2017 07:24:32 +0000 (09:24 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 10 Aug 2017 09:30:47 +0000 (11:30 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/libexec/rpcd/mwan3

index 6bb6f8dd179307d192faaef019813a9271c9be9a..8b7b14ea6aa9986af0b521cb51b0420831647677 100755 (executable)
@@ -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"