diff --git a/src/oping.c b/src/oping.c
index 94515c2c2005fe7300ebd2e57cb920d5da7fec99..3e114f574acfbacae5026a258ba2f17d91aaa014 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
if (clock_gettime (CLOCK_REALTIME, &ts) == 0)
{
- double t = ((double) ts.tv_sec) + (((double) ts.tv_nsec) / 1000000.0);
+ double t = ((double) ts.tv_sec) + (((double) ts.tv_nsec) / 1000000000.0);
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);
}
}