Skip to content

Commit

Permalink
Revert "Fix event processing time counter (ydb-platform#5273)"
Browse files Browse the repository at this point in the history
This reverts commit 91bd7f1.
  • Loading branch information
kruall committed Aug 26, 2024
1 parent b2f7794 commit 92703ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/library/actors/core/worker_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace NActors {
}

i64 AddEventProcessingStats(i64 deliveredTs, i64 processedTs, ui32 activityType, ui64 scheduled) {
i64 elapsed = Max<i64>(0, processedTs - deliveredTs);
i64 elapsed = processedTs - deliveredTs;
ui64 usecElapsed = NHPTimer::GetSeconds(elapsed) * 1000000;
activityType = (activityType >= Stats->MaxActivityType()) ? 0 : activityType;
Stats->EventProcessingCountHistogram.Add(usecElapsed);
Expand Down

0 comments on commit 92703ce

Please sign in to comment.