From: Christian Pointner Date: Sun, 14 Mar 2010 18:10:36 +0000 (+0000) Subject: fixed autosample process X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=1e831f380de42962f40d95675a15b24e4981fe22;p=svn42.git fixed autosample process --- diff --git a/powersensordaemon/autosample.c b/powersensordaemon/autosample.c index a468625..d72af0a 100644 --- a/powersensordaemon/autosample.c +++ b/powersensordaemon/autosample.c @@ -146,6 +146,7 @@ int autosample_process(options_t *opt, int writefd, int readfd) devices[i].device_name_ = k->string_; k = k->next_; v = v->next_; + i++; } int sig_fd = signal_init(); diff --git a/powersensordaemon/options.c b/powersensordaemon/options.c index c0addda..4d64b3e 100644 --- a/powersensordaemon/options.c +++ b/powersensordaemon/options.c @@ -360,5 +360,6 @@ void options_print(options_t* opt) printf("sampledev_file: '%s'\n", opt->sampledev_file_); printf("sampledevs: \n"); key_value_storage_print(&opt->sampledevs_, " '", "' -> '", "'\n"); + printf("autosampledevs: \n"); key_value_storage_print(&opt->autosampledevs_, " '", "' -> '", "'\n"); }