overview.sk: update to 0.2.13
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index fc50040..66cdd7f 100644 (file)
--- a/write.c
+++ b/write.c
@@ -89,7 +89,7 @@ static void initial_delay_pre_select(struct sched *s, struct task *t)
        if (!idt->start_time.tv_sec && !idt->start_time.tv_usec)
                return;
        t->ret = -E_DELAY_TIMEOUT;
-       if (tv_diff(&s->now, &idt->start_time, &diff) > 0)
+       if (tv_diff(now, &idt->start_time, &diff) > 0)
                return;
        t->ret = 1;
        if (tv_diff(&s->timeout , &diff, NULL) > 0)
@@ -150,8 +150,6 @@ static struct writer_node_group *check_args(void)
                if (!wng->writer_nodes[i].conf)
                        goto out;
                wng->writer_nodes[i].writer = &writers[writer_num];
-               sprintf(wng->writer_nodes[i].task.status, "%s",
-                       writer_names[writer_num]);
        }
        ret = 1;
 out:
@@ -216,7 +214,6 @@ int main(int argc, char *argv[])
 
        cmdline_parser(argc, argv, &conf);
        init_supported_writers();
-       init_sched();
 
        wng = check_args();
        if (!wng)