From: Rinigus Date: Thu, 4 Aug 2016 06:13:49 +0000 (+0300) Subject: cpusleep plugin: adding comment regarding units X-Git-Tag: collectd-5.6.0~91^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e2334012f001693cae62dfcbe185a398f77e4451;p=collectd.git cpusleep plugin: adding comment regarding units --- diff --git a/src/cpusleep.c b/src/cpusleep.c index 7cf22272..9a0e17ee 100644 --- a/src/cpusleep.c +++ b/src/cpusleep.c @@ -70,7 +70,7 @@ static int cpusleep_read(void) } // to avoid false positives in counter overflow due to reboot, - // derive is used + // derive is used. Sleep is calculated in milliseconds derive_t sleep = (derive_t) ((b.tv_sec - m.tv_sec)*1e3 + (b.tv_nsec - m.tv_nsec)*1e-6); cpusleep_submit(sleep);