Home
last modified time | relevance | path

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

/base/update/updater/services/
Dupdater.cpp240 float frac = std::stof(output[1]); in SetProgress() local
242 if (frac >= -EPSINON && frac <= EPSINON) { in SetProgress()
245 tmpProgressValue = static_cast<int>(frac * g_percentage); in SetProgress()
247 if (frac >= FULL_EPSINON && g_tmpValue + g_percentage < FULL_PERCENT_PROGRESS) { in SetProgress()
298 float frac; in HandleChildOutput() local
304 frac = std::stof(progress[0]); in HandleChildOutput()
305 g_percentage = static_cast<int>(frac * FULL_PERCENT_PROGRESS); in HandleChildOutput()