From 1e831f380de42962f40d95675a15b24e4981fe22 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 14 Mar 2010 18:10:36 +0000 Subject: [PATCH] fixed autosample process --- powersensordaemon/autosample.c | 1 + powersensordaemon/options.c | 1 + 2 files changed, 2 insertions(+) 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"); } -- 1.7.10.4