]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
updated --csv format: VERSION;TIMESTAMP;STATUS;HOSTNAME;TTL;ENDPOINT;ASN;PING(ms)
authorVaibhav Bajpai <contact@vaibhavbajpai.com>
Sun, 5 May 2013 14:06:37 +0000 (16:06 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Mon, 13 May 2013 15:22:54 +0000 (17:22 +0200)
STATUS field is hardcoded to "OK" for now; not sure what "FAIL" would mean

report.c

index 72e2f55175096bf62f2e95f8428868b1417fe742..dd790511146ddfe1c4aa0ec0e53934938b75f881 100644 (file)
--- 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,