Bug 1264124

Summary: RFE: Provide easier count scaling strings
Product: [Fedora] Fedora Reporter: Marko Myllynen <myllynen>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: brolley, fche, lberk, mgoodwin, nathans, pcp, scox
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 17:55:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marko Myllynen 2015-09-17 14:33:32 UTC
Description of problem:
Currently, for scaling something like "Kbyte" and "GB" are accepted with space-dimension metrics and something like "millisec" and "sec" are accepted with time-dimension metrics. However, with count-dimension the only accepted form is whitespace-sensitive "count x 10" / "count x 10^N". This is needlessly cumbersome, something like "k" or "M" would be much easier to write and for some even easier to read.

Version-Release number of selected component (if applicable):
3.10.7

Comment 1 Marko Myllynen 2015-09-17 14:51:16 UTC
Few concrete examples which might be worthwhile additions for pmParseUnitsStr to accept:

count x 10   : x10 (and perhaps da)
count x 10^2 : x100 (and perhaps h)
count x 10^3 : x1000 and k
count x 10^6 : x1000000 and M

And so on for G/T/E as already possible with space-dimension.

Somewhat related, not sure how to deal with "count / 100" and such, currently it doesn't seem to do anything although it is accepted.

Thanks.

Comment 2 Marko Myllynen 2015-09-17 15:08:24 UTC
(In reply to Marko Myllynen from comment #1)
> 
> Somewhat related, not sure how to deal with "count / 100" and such,
> currently it doesn't seem to do anything although it is accepted.

Actually, nevermind, it works as expected. But here the corresponding forms like "/100" might make sense, not sure about "m" (as opposed to "M") etc.

Comment 3 Marko Myllynen 2015-11-23 13:27:10 UTC
FWIW, as this will be exposed to users via pmrep(1) perhaps at least the space-sentivity would be worth fixing.

Comment 4 Fedora End Of Life 2016-07-19 17:55:17 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.