# [rrd-users] Re: PERCENT question

rodrigo.santos at quantiza.com rodrigo.santos at quantiza.com
Wed Dec 28 14:08:31 MET 2005

```Yes, this is my question: "How many percent is the subnet traffic of the
total?"

using RPN expressions, I have:

subnet = 0.059110
total  = 0.176248
using RPN expression 100,subnet,*,total,/ i have 12.02%

but using a calculator, where:
100 * subnet   = 5.911  / total = 33.53%
subnet / total = 0.3353 * 100   = 33.53%

What is the problem with RPN expressions??

Thanks
Rodrigo

Leif Neland wrote:
> ---- Original Message ----
> From: <rodrigo.santos at quantiza.com>
> To: "Leif Neland" <leif at neland.dk>; <rrd-users at list.ee.ethz.ch>
> Sent: Tuesday, December 27, 2005 6:44 PM
> Subject: Re: [rrd-users] PERCENT question
>
>> Not exactly...
>>
>> It imagines that you it has one subnet with a certain traffic. Now you
>> want to know which percentage of traffic on a total, this subnet you
>> indicate?
>>
>> then:
>>
>> total  - 100%
>> subnet - x: subnet * 100 / total
>>
>> how I make this using rrdtool?
>>
>> Rodrigo
>>
> I still don't understand.
>
> The variables you show above is:
>
> total
> subnet
> x
>
> What do you mean by "x: subnet"
>
> Do I understand your question right as:
> "How many percent is the subnet traffic of the total?"
>
> RPN: 100 subnet * total /
>
>
> Leif
>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users