X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2Fautosample.c;h=00ab7d8c6416fd07dead97fda8ba3c0a5d2dc1a5;hb=26a46e58c6449468c98df0b7a5f94870bb9c4aea;hp=d72af0a540481a099328469a3c62c7ffeceede0c;hpb=1e831f380de42962f40d95675a15b24e4981fe22;p=svn42.git diff --git a/powersensordaemon/autosample.c b/powersensordaemon/autosample.c index d72af0a..00ab7d8 100644 --- a/powersensordaemon/autosample.c +++ b/powersensordaemon/autosample.c @@ -164,8 +164,8 @@ int autosample_process(options_t *opt, int writefd, int readfd) unsigned char sample_enabled = 0; while(!return_value) { memcpy(&tmpfds, &readfds, sizeof(tmpfds)); - timeout.tv_sec = 0; - timeout.tv_usec = 1000000; + timeout.tv_sec = 1; + timeout.tv_usec = 0; int ret = select(max_fd+1, &tmpfds, NULL, NULL, &timeout); if(ret == -1 && errno != EINTR) { log_printf(ERROR, "autosample process select returned with error: %s", strerror(errno));