Skip to content

Commit

Permalink
fix(perf): fix performance api dom time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmao authored and hippy-actions[bot] committed Aug 29, 2023
1 parent 3a2e85d commit 3206035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom/src/dom/dom_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ void DomManager::RecordDomStartTimePoint() {
}

void DomManager::RecordDomEndTimePoint() {
if (dom_end_time_point_.ToEpochDelta() == TimeDelta::Zero()) {
if (dom_end_time_point_.ToEpochDelta() == TimeDelta::Zero()
&& dom_start_time_point_.ToEpochDelta() != TimeDelta::Zero()) {
dom_end_time_point_ = footstone::TimePoint::SystemNow();
}
}
Expand Down

0 comments on commit 3206035

Please sign in to comment.