Skip to content

Commit

Permalink
updated --csv format: VERSION;TIMESTAMP;HOSTNAME;TTL;ENDPOINT;PING(ms)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbajpai authored and rewolff committed May 13, 2013
1 parent 7e40d7b commit 552a298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion report.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down

0 comments on commit 552a298

Please sign in to comment.