mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +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()
|
||||
|
||||
// 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
|
||||
// might cause some non-sense flashing state logs including
|
||||
// `undefined` values.
|
||||
//
|
||||
// We use the presence of `.eta` to determine that the actual
|
||||
// writing started.
|
||||
if (!currentFlashState.eta) {
|
||||
analytics.logDebug(
|
||||
`Progress (${currentFlashState.type}): ` +
|
||||
`${currentFlashState.percentage}% at ${currentFlashState.speed} MB/s ` +
|
||||
`(eta ${currentFlashState.eta}s)`
|
||||
)
|
||||
}
|
||||
analytics.logDebug(
|
||||
`Progress (${currentFlashState.type}): ` +
|
||||
`${currentFlashState.percentage}% at ${currentFlashState.speed} MB/s ` +
|
||||
`(eta ${currentFlashState.eta}s)`
|
||||
)
|
||||
|
||||
windowProgress.set(currentFlashState)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user