overview.sk: update to 0.2.13
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 89d79d1..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)
@@ -214,7 +214,6 @@ int main(int argc, char *argv[])
 
        cmdline_parser(argc, argv, &conf);
        init_supported_writers();
-       init_sched();
 
        wng = check_args();
        if (!wng)