Home
last modified time | relevance | path

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

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