only: unit tests run in US with a loss of precision from NT #6450
This commit is contained in:
parent
b984c5e350
commit
f635029c6a
|
@ -168,7 +168,7 @@ void EventQueue::remove(scheduling_s* scheduling) {
|
|||
*/
|
||||
expected<efitick_t> EventQueue::getNextEventTime(efitick_t nowX) const {
|
||||
if (m_head) {
|
||||
if (m_head->getMomentUs() <= nowX) {
|
||||
if (m_head->getMomentRaw() <= nowX) {
|
||||
/**
|
||||
* We are here if action timestamp is in the past. We should rarely be here since this 'getNextEventTime()' is
|
||||
* always invoked by 'scheduleTimerCallback' which is always invoked right after 'executeAllPendingActions' - but still,
|
||||
|
@ -179,7 +179,7 @@ expected<efitick_t> EventQueue::getNextEventTime(efitick_t nowX) const {
|
|||
*/
|
||||
return nowX + m_lateDelay;
|
||||
} else {
|
||||
return m_head->getMomentUs();
|
||||
return m_head->getMomentRaw();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -65,10 +65,13 @@ struct scheduling_s {
|
|||
return momentX;
|
||||
}
|
||||
|
||||
#if EFI_UNIT_TEST
|
||||
efitick_t getMomentUs() {
|
||||
return momentX;
|
||||
}
|
||||
#endif
|
||||
|
||||
// todo: get rid of this 'I am not sure what's the proper type' method once we are done cleaning things up in unit tests
|
||||
efitick_t getMomentRaw() {
|
||||
return momentX;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue