Merge pull request #177 from github/interactive-sup-fix
fixed sup printing heuristic
This commit is contained in:
commit
36a28637f2
@ -986,6 +986,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
|
||||
}
|
||||
|
||||
shouldPrintStatus := false
|
||||
if rule == HeuristicPrintStatusRule {
|
||||
if elapsedSeconds <= 60 {
|
||||
shouldPrintStatus = true
|
||||
} else if etaSeconds <= 60 {
|
||||
@ -999,7 +1000,8 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
|
||||
} else {
|
||||
shouldPrintStatus = (elapsedSeconds%30 == 0)
|
||||
}
|
||||
if rule == ForcePrintStatusRule || rule == ForcePrintStatusAndHintRule {
|
||||
} else {
|
||||
// Not heuristic
|
||||
shouldPrintStatus = true
|
||||
}
|
||||
if !shouldPrintStatus {
|
||||
|
Loading…
Reference in New Issue
Block a user