pkarashchenko commented on a change in pull request #5859:
URL: https://github.com/apache/incubator-nuttx/pull/5859#discussion_r835898017



##########
File path: sched/sched/sched_timerexpiration.c
##########
@@ -205,8 +205,8 @@ static uint32_t nxsched_cpu_scheduler(int cpu, uint32_t 
ticks,
        * committed to updating the scheduler for this TCB.
        */
 
-      sporadic->sched_time.tv_sec  = g_sched_time.tv_sec;
-      sporadic->sched_time.tv_nsec = g_sched_time.tv_nsec;
+      sporadic->eventtime = SEC2TICK(g_sched_time.tv_sec) +
+      NSEC2TICK(g_sched_time.tv_nsec);

Review comment:
       ```suggestion
         sporadic->eventtime = SEC2TICK(g_sched_time.tv_sec) +
                               NSEC2TICK(g_sched_time.tv_nsec);
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to