@@ -986,20 +986,22 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
986
986
}
987
987
988
988
shouldPrintStatus := false
989
- if elapsedSeconds <= 60 {
990
- shouldPrintStatus = true
991
- } else if etaSeconds <= 60 {
992
- shouldPrintStatus = true
993
- } else if etaSeconds <= 180 {
994
- shouldPrintStatus = (elapsedSeconds % 5 == 0 )
995
- } else if elapsedSeconds <= 180 {
996
- shouldPrintStatus = (elapsedSeconds % 5 == 0 )
997
- } else if this .migrationContext .TimeSincePointOfInterest ().Seconds () <= 60 {
998
- shouldPrintStatus = (elapsedSeconds % 5 == 0 )
989
+ if rule == HeuristicPrintStatusRule {
990
+ if elapsedSeconds <= 60 {
991
+ shouldPrintStatus = true
992
+ } else if etaSeconds <= 60 {
993
+ shouldPrintStatus = true
994
+ } else if etaSeconds <= 180 {
995
+ shouldPrintStatus = (elapsedSeconds % 5 == 0 )
996
+ } else if elapsedSeconds <= 180 {
997
+ shouldPrintStatus = (elapsedSeconds % 5 == 0 )
998
+ } else if this .migrationContext .TimeSincePointOfInterest ().Seconds () <= 60 {
999
+ shouldPrintStatus = (elapsedSeconds % 5 == 0 )
1000
+ } else {
1001
+ shouldPrintStatus = (elapsedSeconds % 30 == 0 )
1002
+ }
999
1003
} else {
1000
- shouldPrintStatus = (elapsedSeconds % 30 == 0 )
1001
- }
1002
- if rule == ForcePrintStatusRule || rule == ForcePrintStatusAndHintRule {
1004
+ // Not heuristic
1003
1005
shouldPrintStatus = true
1004
1006
}
1005
1007
if ! shouldPrintStatus {
0 commit comments