mirror of
https://github.com/openstf/stf
synced 2025-10-06 12:00:08 +02:00
Faster progress.
This commit is contained in:
parent
c45da05e28
commit
ea6245ace4
2 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue