mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 05:06:40 +00:00
fix(gui): Re-enable printing progress in console (#1853)
Change-Type: patch
This commit is contained in:
parent
19275a5ba4
commit
0e02998faf
@ -185,20 +185,15 @@ app.run(() => {
|
|||||||
|
|
||||||
const currentFlashState = flashState.getFlashState()
|
const currentFlashState = flashState.getFlashState()
|
||||||
|
|
||||||
// There is usually a short time period between the `isFlashing()`
|
// NOTE: There is usually a short time period between the `isFlashing()`
|
||||||
// property being set, and the flashing actually starting, which
|
// property being set, and the flashing actually starting, which
|
||||||
// might cause some non-sense flashing state logs including
|
// might cause some non-sense flashing state logs including
|
||||||
// `undefined` values.
|
// `undefined` values.
|
||||||
//
|
|
||||||
// We use the presence of `.eta` to determine that the actual
|
|
||||||
// writing started.
|
|
||||||
if (!currentFlashState.eta) {
|
|
||||||
analytics.logDebug(
|
analytics.logDebug(
|
||||||
`Progress (${currentFlashState.type}): ` +
|
`Progress (${currentFlashState.type}): ` +
|
||||||
`${currentFlashState.percentage}% at ${currentFlashState.speed} MB/s ` +
|
`${currentFlashState.percentage}% at ${currentFlashState.speed} MB/s ` +
|
||||||
`(eta ${currentFlashState.eta}s)`
|
`(eta ${currentFlashState.eta}s)`
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
windowProgress.set(currentFlashState)
|
windowProgress.set(currentFlashState)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user