update memory consumption on task acknowledgement
[mTask.git] / client / task.c
index 9206a13..4ed23ee 100644 (file)
@@ -50,9 +50,11 @@ void task_register(void)
        debug("Received a task of length %d", t->tasklength);
        t->lastrun = 0L;
        t->taskid = taskid++;
+       t->value = 0;
 
        write_byte('t');
        write16(t->taskid);
+       write16(mem_free());
        write_byte('\n');
        debug("free memory: %lu\n", mem_free());
 }