From: Vaibhav Bajpai Date: Fri, 3 May 2013 08:26:51 +0000 (+0200) Subject: updated --csv format: VERSION;TIMESTAMP;HOSTNAME;TTL;ENDPOINT;PING(ms) X-Git-Tag: v0.85~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=552a298941991586571950d2882bca96bf77d37a;p=thirdparty%2Fmtr.git updated --csv format: VERSION;TIMESTAMP;HOSTNAME;TTL;ENDPOINT;PING(ms) --- diff --git a/report.c b/report.c index af397d6..dea1c42 100644 --- a/report.c +++ b/report.c @@ -341,7 +341,9 @@ void csv_close(void) addr = net_addr(at); snprint_addr(name, sizeof(name), addr); - printf("MTR.%s;%lu;%s;%d;%s", MTR_VERSION, now, Hostname, at+1, name); + int last = net_last(at); + printf("MTR.%s;%lu;%s;%d;%s;%d", MTR_VERSION, now, Hostname, + at+1, name, last); for( i=0; i