Skip to content

Commit 58bb6d6

Browse files
committed
build fix
1 parent cf68e51 commit 58bb6d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/platform/platform_worker.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)