mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 12:56:26 +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
@ -91,6 +91,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