X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcpusleep.c;h=aa14cc12f8286060e388fd5be7ded5ba3400c7e3;hp=62988fb0205f9e6c197ad4c86f39b00708bc6a1e;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=01761867ced7bc5fe71546baf350be4a3e800600 diff --git a/src/cpusleep.c b/src/cpusleep.c index 62988fb0..aa14cc12 100644 --- a/src/cpusleep.c +++ b/src/cpusleep.c @@ -51,12 +51,12 @@ static int cpusleep_read(void) { struct timespec b, m; if (clock_gettime(CLOCK_BOOTTIME, &b) < 0) { ERROR("cpusleep plugin: clock_boottime failed"); - return (-1); + return -1; } if (clock_gettime(CLOCK_MONOTONIC, &m) < 0) { ERROR("cpusleep plugin: clock_monotonic failed"); - return (-1); + return -1; } // to avoid false positives in counter overflow due to reboot, @@ -67,7 +67,7 @@ static int cpusleep_read(void) { cpusleep_submit(sleep); - return (0); + return 0; } void module_register(void) {