projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/daemon/utils_time.h: Return structs from CDTIME_T_TO_TIME{VAL,SPEC}.
[collectd.git]
/
src
/
daemon
/
plugin.c
diff --git
a/src/daemon/plugin.c
b/src/daemon/plugin.c
index
7446b6f
..
aa13378
100644
(file)
--- a/
src/daemon/plugin.c
+++ b/
src/daemon/plugin.c
@@
-522,12
+522,8
@@
static void *plugin_read_thread (void __attribute__((unused)) *args)
&& (cdtime () < rf->rf_next_read)
&& rc == 0)
{
&& (cdtime () < rf->rf_next_read)
&& rc == 0)
{
- struct timespec ts = { 0 };
-
- CDTIME_T_TO_TIMESPEC (rf->rf_next_read, &ts);
-
rc = pthread_cond_timedwait (&read_cond, &read_lock,
rc = pthread_cond_timedwait (&read_cond, &read_lock,
- &
ts
);
+ &
CDTIME_T_TO_TIMESPEC (rf->rf_next_read)
);
}
/* Must hold `read_lock' when accessing `rf->rf_type'. */
}
/* Must hold `read_lock' when accessing `rf->rf_type'. */