Home
last modified time | relevance | path

Searched refs:kMaxQuality (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
DDnsStats.cpp143 mPenalty = std::min(mPenalty * 2, kMaxQuality); in updatePenalty()
155 int quality = std::clamp(avgRtt + mPenalty - mSkippedCount, -1, kMaxQuality); in score()
158 return static_cast<double>(kMaxQuality - quality) * 100 / kMaxQuality; in score()
162 mSkippedCount = std::min(mSkippedCount + 1, kMaxQuality); in incrementSkippedCount()
DDnsStats.h105 static constexpr int kMaxQuality = 10000; variable