Fix default scenario values, added steps output
This commit is contained in:
parent
829b632c53
commit
821c94289b
@ -13,6 +13,6 @@ static void run_debug(task_t *task, gpointer userdata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
task_main(argc, argv, run, run_debug, NULL, 2001);
|
task_main(argc, argv, run, run_debug, NULL, 3001);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,6 @@ static void run_debug(task_t *task, gpointer userdata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
task_main(argc, argv, run, run_debug, NULL, 2001);
|
task_main(argc, argv, run, run_debug, NULL, 4001);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ static inline void task_main(int argc, char **argv, task_app_t app, task_app_t d
|
|||||||
|
|
||||||
task = task_new(scenario);
|
task = task_new(scenario);
|
||||||
score = task_run(task, app, userdata, tracefile);
|
score = task_run(task, app, userdata, tracefile);
|
||||||
fprintf(stderr, "Finale score: %f\n", score);
|
fprintf(stderr, "Finale score: %f (steps: %u)\n", score, (guint) task->timestamp);
|
||||||
task_free(task);
|
task_free(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user