author | Florian Forster <octo@collectd.org> | |
Fri, 11 Nov 2016 13:34:20 +0000 (14:34 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 11 Nov 2016 13:36:15 +0000 (14:36 +0100) | ||
commit | db961f476426f5dd3ca1663ffc094f0fc7f6f8a2 | |
tree | 1f868a98462f43b72d58550d3a1c58a3be20ea15 | tree | snapshot |
parent | 1326af38b3ef25c41c994cd76c043202636b3d70 | commit | diff |
collectd-tg: Fix sleep interval.
nanosleep() was called with the current time, meaning that it would
block for years. This correctly subtracts "now" from the metric's time
and only sleeps for the duration between the two.
nanosleep() was called with the current time, meaning that it would
block for years. This correctly subtracts "now" from the metric's time
and only sleeps for the duration between the two.
src/collectd-tg.c | diff | blob | history |