File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -916,14 +916,14 @@ CxPlatWorkerPoolGetStatistics(
916916 CXPLAT_WORKER * Worker = & WorkerPool -> Workers [Index ];
917917
918918 Stats -> IdealProcessor = Worker -> IdealProcessor ;
919- Stats -> CumulativeWallTimeUs = CxPlatTimeDiff64 (Worker -> Stats .StartedTimeUs , Now );
919+ Stats -> CumulativeWallTimeUs = CxPlatTimeDiff64 (Worker -> Stats .StartedTimeUs , TimeNow );
920920 Stats -> CumulativeActiveTimeUs = Worker -> Stats .CumulativeActiveTimeUs ;
921921
922922 //
923923 // If the worker is currently active, include the in-progress active period.
924924 //
925925 const uint64_t ActiveStartTimeUs = Worker -> Stats .ActiveStartTimeUs ;
926- if (ActiveStartTimeUs != 0 && ActiveStartTimeUs < Now ) {
927- Stats -> CumulativeActiveTimeUs += CxPlatTimeDiff64 (ActiveStartTimeUs , Now );
926+ if (ActiveStartTimeUs != 0 && ActiveStartTimeUs < TimeNow ) {
927+ Stats -> CumulativeActiveTimeUs += CxPlatTimeDiff64 (ActiveStartTimeUs , TimeNow );
928928 }
929929}
You can’t perform that action at this time.
0 commit comments