src/plugin.c: Use cdtime_t to calculate the sleep intervals.
authorFlorian Forster <octo@collectd.org>
Wed, 6 Feb 2013 19:21:06 +0000 (20:21 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 6 Feb 2013 19:21:06 +0000 (20:21 +0100)
commite277e04ede1dc46861e0d71e204c881cec79af48
treea7c32c173241027290573933ee0943963513f0f9
parentc9ca810479718e02eeecfda9155f06585a0362fc
src/plugin.c: Use cdtime_t to calculate the sleep intervals.

Since it's easier to do calculations with cdtime_t than struct timespec,
the code becomes easier to read and maintain.
src/plugin.c