Merge pull request #177 from github/interactive-sup-fix

fixed sup printing heuristic
This commit is contained in:
Shlomi Noach 2016-08-19 09:42:17 +02:00 committed by GitHub
commit 36a28637f2

View File

@ -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 {