[Orca-dev] Re: another new feature

Blair Zajac blair at akamai.com
Wed Jan 31 17:19:37 PST 2001


Alex,

Thanks for the patch.  Its been included it in the current code base
being used for the next release of Orca.

Regards,
Blair

Alex Howansky wrote:
> 
> -------------------------- eGroups Sponsor -------------------------~-~>
> GET A NEXTCARD VISA, in 30 seconds!  Get rates
> of 2.9% Intro or 9.9% Ongoing APR* and no annual fee!
> Apply NOW!
> http://click.egroups.com/1/9146/11/_/576655/_/968268442/
> ---------------------------------------------------------------------_->
> 
> Attached are three small patches for orca, Config.pm, and ImageFile.pm. They
> add the ability to specify a formatting string for the summary values at the
> bottom of the graph. For example, previously, a graph might have looked
> something like:
> 
> Things  Current:    4.2 k  Average:    3.9 k  Min:    0.1 k  Max:   19.1 k
> 
> All the numbers were formatted with a hard-coded "%9.3lf %s". By using the
> summary_format option in the plot section of the config file, you can specify
> this:
> 
> plot {
> source things
> data things
> summary_format %.0lf
> }
> 
> which would cause the summary to look like this:
> 
> Things  Current: 4213  Average: 3931  Min: 142  Max: 19103
> 
> The same format is used for each number within a single summary line, but you
> can specify multiple summary_format options if there are multiple plots on the
> graph:
> 
> plot {
> source things
> data things
> data other
> summary_format %.0lf
> summary_format %4.1f%s
> color 0000ff
> color ff0000
> }
> 
> Including the %s in the format string will cause RRDTool to auto-scale the
> value and add the appropriate "k" or "M" or whatever.
> 
> --
> Alex Howansky
> Wankwood Associates
> http://www.wankwood.com/
> 
>   ------------------------------------------------------------------------
>              Name: patch1
>    patch1    Type: Plain Text (TEXT/PLAIN)
>          Encoding: BASE64
> 
>              Name: patch2
>    patch2    Type: Plain Text (TEXT/PLAIN)
>          Encoding: BASE64
> 
>              Name: patch3
>    patch3    Type: Plain Text (TEXT/PLAIN)
>          Encoding: BASE64



More information about the Orca-dev mailing list