Home
last modified time | relevance | path

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

/base/update/updater/services/
Dupdater.cpp283 float frac = std::stof(output[1]); in SetProgress() local
285 if (frac >= -EPSINON && frac <= EPSINON) { in SetProgress()
288 tmpProgressValue = static_cast<int>(frac * g_percentage); in SetProgress()
290 if (frac >= FULL_EPSINON && g_tmpValue + g_percentage < FULL_PERCENT_PROGRESS) { in SetProgress()
340 float frac; in HandleChildOutput() local
346 frac = std::stof(progress[0]); in HandleChildOutput()
347 g_percentage = static_cast<int>(frac * FULL_PERCENT_PROGRESS); in HandleChildOutput()