1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 12:00:08 +02:00

Faster progress.

This commit is contained in:
Simo Kinnunen 2014-04-04 18:10:43 +09:00
parent c45da05e28
commit ea6245ace4
2 changed files with 5 additions and 3 deletions

View file

@ -97,12 +97,12 @@ module.exports = syrup.serial()
sendProgress('installing_app', guesstimate)
return promiseutil.periodicNotify(
adb.installRemote(options.serial, apk)
, 1000
, 250
)
.progressed(function() {
guesstimate = Math.min(
end
, guesstimate + 5 * (end - guesstimate) / (end - start)
, guesstimate + 1.5 * (end - guesstimate) / (end - start)
)
sendProgress('installing_app', guesstimate)
})