[hamradio-commits] [dump1090] 254/373: Update net_io.c

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit c2962a00e50391b842458edb9e7c9da8737d450c
Author: termigrator <robert1 at kaider.info>
Date:   Sun Sep 22 23:25:12 2013 +0200

    Update net_io.c
    
    Added vertical rate (a->vert_rate) to json output
---
 net_io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net_io.c b/net_io.c
index 50bf803..38820e1 100644
--- a/net_io.c
+++ b/net_io.c
@@ -587,9 +587,9 @@ char *aircraftsToJson(int *len) {
         // No metric conversion
         l = snprintf(p,buflen,
             "{\"hex\":\"%06x\", \"squawk\":\"%04x\", \"flight\":\"%s\", \"lat\":%f, "
-            "\"lon\":%f, \"validposition\":%d, \"altitude\":%d, \"track\":%d, \"validtrack\":%d,"
+            "\"lon\":%f, \"validposition\":%d, \"altitude\":%d,  \"vert_rate\":%d,\"track\":%d, \"validtrack\":%d,"
             "\"speed\":%d, \"messages\":%ld, \"seen\":%d},\n",
-            a->addr, a->modeA, a->flight, a->lat, a->lon, position, a->altitude, a->track, track,
+            a->addr, a->modeA, a->flight, a->lat, a->lon, position, a->altitude, a->vert_rate, a->track, track,
             a->speed, a->messages, (int)(now - a->seen));
         p += l; buflen -= l;
         

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list