From e2334012f001693cae62dfcbe185a398f77e4451 Mon Sep 17 00:00:00 2001 From: Rinigus Date: Thu, 4 Aug 2016 09:13:49 +0300 Subject: [PATCH] cpusleep plugin: adding comment regarding units --- src/cpusleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2