mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:23:28 +02:00
Faster progress.
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user