Skip to content

Commit c627a60

Browse files
committed
Keep start timestamp the same while searching
1 parent b439166 commit c627a60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ProcessScheduler/Scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ int Scheduler::run()
139139
if (_active) return 0;
140140

141141
uint8_t count = 0;
142+
uint32_t start = getCurrTS();
142143
for (uint8_t pLevel=0; pLevel < NUM_PRIORITY_LEVELS; pLevel++)
143144
{
144145
processQueue();
@@ -150,7 +151,6 @@ int Scheduler::run()
150151
continue;
151152

152153
// find the highest priority process that needs to run
153-
uint32_t start = getCurrTS();
154154
Process *torun = NULL;
155155

156156
// Search for the best process

0 commit comments

Comments
 (0)