]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
updated --csv format: VERSION;TIMESTAMP;HOSTNAME;TTL;ENDPOINT;PING(ms)
authorVaibhav Bajpai <contact@vaibhavbajpai.com>
Fri, 3 May 2013 08:26:51 +0000 (10:26 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Mon, 13 May 2013 15:22:53 +0000 (17:22 +0200)
report.c

index af397d6ae9f110e2edf8d85361685518e8ef1377..dea1c4217f290e2d18bf9f6d7d512a23416bb846 100644 (file)
--- 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<MAXFLD; i++ ) {
       j = fld_index[fld_active[j]];