Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
Add inactive indicator when princint data in the cli
Browse files Browse the repository at this point in the history
Signed-off-by: Your Name <[email protected]>
  • Loading branch information
Your Name committed Sep 6, 2021
1 parent bfb3196 commit 344ef1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/cli/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ func (self *DataCmd) Run(cli *CLI, ctx context.Context, logger log.Logger) error
int(time.Since(time.Unix(submit.Timestamp.Int64(), 0)).Minutes()),
)
}
fmt.Fprintf(w, "%v:%v id:%v\t",
inactive := ""
if tellor.IsInactive(id.Int64()) {
inactive = "(in)"
}
fmt.Fprintf(w, "%v:%v \t %vid:%v\t",
tellor.Psrs[id.Int64()].Pair,
tellor.Psrs[id.Int64()].Aggr,
inactive,
id.Int64(),
)
for i, val := range submit.Values[id.Int64()] {
Expand Down

0 comments on commit 344ef1e

Please sign in to comment.