projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e163fd0
)
Use CLOCK_REALTIME for collectd-tg times (fixes issue 2219)
author
Andrew Bays
<abays@redhat.com>
Mon, 25 Jun 2018 14:12:07 +0000
(10:12 -0400)
committer
Andrew Bays
<abays@redhat.com>
Mon, 25 Jun 2018 14:12:07 +0000
(10:12 -0400)
src/collectd-tg.c
patch
|
blob
|
history
diff --git
a/src/collectd-tg.c
b/src/collectd-tg.c
index
48f2dc4
..
511cf5b
100644
(file)
--- a/
src/collectd-tg.c
+++ b/
src/collectd-tg.c
@@
-104,7
+104,7
@@
static double dtime(void) /* {{{ */
{
struct timespec ts = {0};
- if (clock_gettime(CLOCK_
MONOTONIC
, &ts) != 0)
+ if (clock_gettime(CLOCK_
REALTIME
, &ts) != 0)
perror("clock_gettime");
return (double)ts.tv_sec + (double)ts.tv_nsec / 1e9;