added elapsedSeconds to status hook

This commit is contained in:
Shlomi Noach 2016-08-25 13:54:21 +02:00
parent cb1a7e2805
commit b064174ab4

View File

@ -1077,7 +1077,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
fmt.Fprintln(w, status)
if elapsedSeconds%60 == 0 {
this.hooksExecutor.onStatus(status)
this.hooksExecutor.onStatus(status, elapsedSeconds)
}
}