fixed autosample process
authorChristian Pointner <equinox@realraum.at>
Sun, 14 Mar 2010 18:10:36 +0000 (18:10 +0000)
committerChristian Pointner <equinox@realraum.at>
Sun, 14 Mar 2010 18:10:36 +0000 (18:10 +0000)
powersensordaemon/autosample.c
powersensordaemon/options.c

index a468625..d72af0a 100644 (file)
@@ -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();
index c0addda..4d64b3e 100644 (file)
@@ -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");
 }