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

Enable optional larger unit output for cli tool #121

Open
trent-s opened this issue Sep 3, 2024 · 1 comment
Open

Enable optional larger unit output for cli tool #121

trent-s opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@trent-s
Copy link
Collaborator

trent-s commented Sep 3, 2024

Currently, susqltop outputs values in Joules and grams.
It would be nice to offer ability to output in larger units.

@trent-s trent-s self-assigned this Sep 3, 2024
@trent-s
Copy link
Collaborator Author

trent-s commented Sep 3, 2024

Thinking about offering the following modifiers to adjust units for both energy and carbon.

  • -k (kilo) to give us kilojoules kilograms
  • -m (mega) to give us megajoules and megagrams
  • -g (giga) to give us gigajoules and gigagrams

In the event of multiple specifications, the last one has precedence.
In addition to calculation, also update unit displayed in header.
Probably should rewrite to use the getopt command internally.

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