perfsonar / perfsonar/pscompose

Build UI component that understands SI suffixes and validates/returns an integer for bandwidths and other large numbers

Open
#210 0 comments 0 reactions 1 assignee View on GitHub

@johyunjihyunji is already working on this.

Since Jun 5, 2026.

Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Adding some context to this

Some users prefer to enter 10.5g  for a numeric field instead of having to count out zeros and enter 10500000000. The bandwidth property for throughput is the poster child for this. pScheduler supports this on the command line for selected fields, but the JSON it gets converted to is still numeric. There's some jq that does the conversion; the table of suffixes at the top might be useful:  https://github.com/perfsonar/pscheduler/blob/master/pscheduler-jq-library/pscheduler-jq-library/si.jq

Examples (suffixes are case-insensitive):

10ki becomes 10240
3.14M becomes 3140000
1234 becomes 1234 (no prefix, no change)
0y becomes 0 
8GI becomes 8589934592

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.