Update schedule.c

fixed allot_tickets, changed do_nice, added #ifdef RUN_ALL