make pays more obvious

This commit is contained in:
Bel LaPointe
2022-01-14 08:56:25 -05:00
parent 442e8c2992
commit 55b6f48314
3 changed files with 17 additions and 11 deletions

View File

@@ -56,7 +56,13 @@ func (ji ntgVisionJobInfo) String() string {
if ji.IsZero() {
return ""
}
out := fmt.Sprintf("Pays:%v Auction:%v", ji.PayUpTo, ji.LoadState)
out := ""
if ji.PayUpTo != 0 {
out = fmt.Sprintf("\nPAYS:%v\n%s", ji.PayUpTo, out)
}
if ji.LoadState != "" {
out = fmt.Sprintf("%s Auction:%s", out, ji.LoadState)
}
if len(ji.StopsInfo) != 2 {
return out
}