summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b1a6a7)
raw | patch | inline | side by side (parent: 9b1a6a7)
author | Florian Forster <ff@octo.it> | |
Mon, 27 Jun 2016 10:49:32 +0000 (12:49 +0200) | ||
committer | Florian Forster <ff@octo.it> | |
Mon, 27 Jun 2016 10:49:32 +0000 (12:49 +0200) |
It's "ns", not "us", stoopid!
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index 94515c2c2005fe7300ebd2e57cb920d5da7fec99..e3bbffc7e66559986d16c12c0df42411e3013023 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");