You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Mladen Turk (JIRA)" <ji...@apache.org> on 2010/05/20 17:05:53 UTC

[jira] Issue Comment Edited: (TS-361) Use human readable number multiplies for configuration values

    [ https://issues.apache.org/jira/browse/TS-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869631#action_12869631 ] 

Mladen Turk edited comment on TS-361 at 5/20/10 11:04 AM:
----------------------------------------------------------

Implemented in the trunk and will be part of 2.1.1
Code is also safe for backport to previous branches thought.

Parsing rule for numbers is:
[-]digit*[GKMT]

Allowed SI decimal multipliers are
K multiplies the provided number with 1024
M multiplies the provided number with 1024 * 1024
G multiplies the provided number with 1024 * 1024 * 1024
T multiplies the provided number with 1024 * 1024 * 1024 * 1024

This basically allows any INT configuration value to contain the multiplier after the last numeric digit.



      was (Author: mturk@apache.org):
    Implemented in the trunk and will be part of 2.1.1
Code is also safe for backport to previous branches thought.

Parsing rule for numbers is:
[-]digit*[GKMT]

Allowed multipliers are
K multiplies the provided number with 1024
M multiplies the provided number with 1024 * 1024
G multiplies the provided number with 1024 * 1024 * 1024
G multiplies the provided number with 1024 * 1024 * 1024 * 1024

This basically allows any INT configuration value to contain the multiplier after the last numeric digit.


  
> Use human readable number multiplies for configuration values
> -------------------------------------------------------------
>
>                 Key: TS-361
>                 URL: https://issues.apache.org/jira/browse/TS-361
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Config
>            Reporter: Mladen Turk
>            Assignee: Mladen Turk
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> Use friendly multipliers for the configuration numbers
> using the following notation:
> [-]digit*[gGkKmM]
> k or K multiplies the provided number with 1024
> m or M multiplies the provided number with 1024 * 1024
> g or G multiplies the provided number with 1024 * 1024 * 1024
> Add this as generic string function similar to ink_atoll

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.