From: Vaibhav Bajpai Date: Sun, 5 May 2013 14:06:37 +0000 (+0200) Subject: updated --csv format: VERSION;TIMESTAMP;STATUS;HOSTNAME;TTL;ENDPOINT;ASN;PING(ms) X-Git-Tag: v0.85~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdcda4be5201dffa5e61859276a1d67d88429301;p=thirdparty%2Fmtr.git updated --csv format: VERSION;TIMESTAMP;STATUS;HOSTNAME;TTL;ENDPOINT;ASN;PING(ms) STATUS field is hardcoded to "OK" for now; not sure what "FAIL" would mean --- diff --git a/report.c b/report.c index 72e2f55..dd79051 100644 --- a/report.c +++ b/report.c @@ -365,7 +365,7 @@ void csv_close(time_t now) if(!ipinfo_no) { char* fmtinfo = fmt_ipinfo(addr); if (fmtinfo != NULL) fmtinfo = trimwhitespace(fmtinfo); - printf("MTR.%s;%lu;%s;%d;%s;%s;%d", MTR_VERSION, now, Hostname, + printf("MTR.%s;%lu;%s;%s;%d;%s;%s;%d", MTR_VERSION, now, "OK", Hostname, at+1, name, fmtinfo, last); } else { printf("MTR.%s;%lu;%s;%d;%s;%d", MTR_VERSION, now, Hostname,