File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8428,12 +8428,13 @@ TickType_t uxTaskResetEventItemValue( void )
84288428 ulCurrentRunTimeCounter = portGET_RUN_TIME_COUNTER_VALUE ();
84298429 #endif
84308430
8431- #if ( configNUMBER_OF_CORES == 1 )
8431+ #if ( configNUMBER_OF_CORES == 1 )
84328432 ulTimeSinceLastSwitchedIn = ulCurrentRunTimeCounter - ulTaskSwitchedInTime [ 0 ];
84338433 #else
84348434 ulTimeSinceLastSwitchedIn = ulCurrentRunTimeCounter - ulTaskSwitchedInTime [ pxTCB -> xTaskRunState ];
84358435 #endif
84368436 }
8437+
84378438 ulTotalRunTime = pxTCB -> ulRunTimeCounter + ulTimeSinceLastSwitchedIn ;
84388439 }
84398440 taskEXIT_CRITICAL ();
@@ -8472,7 +8473,7 @@ TickType_t uxTaskResetEventItemValue( void )
84728473 pxTCB = prvGetTCBFromHandle ( xTask );
84738474 configASSERT ( pxTCB != NULL );
84748475
8475- ulReturn = ulTaskRunTimeCounter / ulTotalTime ;
8476+ ulReturn = ulTaskRunTimeCounter / ulTotalTime ;
84768477 }
84778478 else
84788479 {
You can’t perform that action at this time.
0 commit comments