Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render nil as 0 in number formats #3

Open
ripienaar opened this issue Aug 5, 2022 · 1 comment
Open

Render nil as 0 in number formats #3

ripienaar opened this issue Aug 5, 2022 · 1 comment

Comments

@ripienaar
Copy link
Member

Given the report:

body: |
  @<<<<<<<<<<<<<  | @<<<<<  | @,############ | @,###### | @,####### | @,########## / @,##########
  row.config.name, row.cluster.leader, row.state.messages, row.state.num_subjects, row.state.consumer_count, row.cluster.replicas.0.lag, row.cluster.replicas.1.lag

The result has gaps, 0 would be better:

Name            | Cluster | Messages       | Subjects | Consumers | Peer Lag
----------------|---------|----------------|----------|-----------|----------------------------
NYC             | n3-lon  | 0              | 33       | 0         |              /
ripienaar added a commit that referenced this issue Aug 5, 2022
ripienaar added a commit that referenced this issue Aug 5, 2022
(#3) Improve nil number rendering
@ripienaar
Copy link
Member Author

I'll keep this one open, we need to detect from the format what a likely data type for the null data is and then render an appropriate value like 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant