plots
[des2015.git] / mart / ex10 / ex10a.c
index c0781f7..cf1272f 100644 (file)
@@ -15,7 +15,6 @@ RTIME times[SAMPLES];
 
 void taskf(void *arg)
 {
-       RT_TASK *curtask;
        rt_task_set_periodic(NULL, TM_NOW, 1e5);
 
        unsigned int i;
@@ -24,18 +23,13 @@ void taskf(void *arg)
                rt_task_wait_period(NULL);
        }
        FILE *file;
-       file = fopen("ex10a.csv", "w");
+       file = fopen("ex10ab.csv", "w");
        for(i = 0; i<SAMPLES-1; i++){
-               fprintf(file, "%u\t%llu\n", i, times[i+1]-times[i]);
+               fprintf(file, "%u,%llu\n", i, times[i+1]-times[i]);
        }
        fclose(file);
 }
 
-void taskw(void *arg)
-{
-       rt_task_join(&task);
-}
-
 int main(int argc, char* argv[])
 {
        rt_print_auto_init(1);