src/oping.c: Actually _comma_ separate output lines.
authorFlorian Forster <ff@octo.it>
Mon, 27 Jun 2016 10:49:52 +0000 (12:49 +0200)
committerFlorian Forster <ff@octo.it>
Mon, 27 Jun 2016 10:49:52 +0000 (12:49 +0200)
src/oping.c

index e3bbffc..3e114f5 100644 (file)
@@ -1611,7 +1611,7 @@ static void update_host_hook (pingobj_iter_t *iter, /* {{{ */
                        if ((sequence % 32) == 0)
                                fprintf (outfile, "#time,host,latency[ms]\n");
 
-                       fprintf (outfile, "%.3f \"%s\" %.2f\n", t, context->host, latency);
+                       fprintf (outfile, "%.3f,\"%s\",%.2f\n", t, context->host, latency);
                }
        }