Merge pull request #6112 from filecoin-project/ux/inspect-deal-estimates

add "expected duration" label to inspect-deals output
This commit is contained in:
Łukasz Magiera 2021-04-26 20:08:33 +02:00 committed by GitHub
commit c88eeaaf02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2347,7 +2347,7 @@ func renderDeal(di *lapi.DealInfo) {
} }
for _, stg := range di.DealStages.Stages { for _, stg := range di.DealStages.Stages {
msg := fmt.Sprintf("%s %s: %s (%s)", color.BlueString("Stage:"), color.BlueString(strings.TrimPrefix(stg.Name, "StorageDeal")), stg.Description, color.GreenString(stg.ExpectedDuration)) msg := fmt.Sprintf("%s %s: %s (expected duration: %s)", color.BlueString("Stage:"), color.BlueString(strings.TrimPrefix(stg.Name, "StorageDeal")), stg.Description, color.GreenString(stg.ExpectedDuration))
if stg.UpdatedTime.Time().IsZero() { if stg.UpdatedTime.Time().IsZero() {
msg = color.YellowString(msg) msg = color.YellowString(msg)
} }