mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Preserved job queue currant index after pushing a job. (#1781)
* Peserved job queue current index after pushing a job. * Reconciled the heinous offense of using tabs.
This commit is contained in:
parent
1a842a6b89
commit
c9cec718b4
@ -92,6 +92,11 @@ int Trick::ScheduledJobQueue::push( JobData * new_job ) {
|
||||
/* Increment the size of the queue */
|
||||
list_size++ ;
|
||||
|
||||
int new_job_index = (insert_pt - list) / sizeof(JobData**);
|
||||
if(new_job_index < curr_index) {
|
||||
curr_index++;
|
||||
}
|
||||
|
||||
return(0) ;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user