]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Fix typo in csv_close() that prevented any of the data columns from being printed.
authorTobias Rittweiler <tobias@teclo.net>
Fri, 25 Dec 2015 11:51:19 +0000 (12:51 +0100)
committerTobias Rittweiler <tobias@teclo.net>
Fri, 25 Dec 2015 12:07:03 +0000 (13:07 +0100)
report.c

index d6752eb3535f324988eb95b624337cf3bf22f250..ce720dde8048a64e9c31726054a6f4cb0a936a5b 100644 (file)
--- a/report.c
+++ b/report.c
@@ -360,7 +360,7 @@ void csv_close(time_t now)
              at+1, name, last);
 
     for( i=0; i<MAXFLD; i++ ) {
-      j = fld_index[fld_active[j]];
+      j = fld_index[fld_active[i]];
       if (j < 0) continue; 
 
       /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */