Ninety-Fifth Percentile Calculation for Bandwidth
Posted
by Kyle Brandt
on Server Fault
See other posts from Server Fault
or by Kyle Brandt
Published on 2010-03-16T11:54:05Z
Indexed on
2010/03/16
11:56 UTC
Read the original article
Hit count: 319
bandwidth
|networking
I am trying to calculate the bandwidth of my current internet connection. I am pulling the current input and output transfer rate via snmp. If the argument to the following function is a sorted ascending list of the the some of each input and output sample, is this the right way to calculate 95th percentile?
sub ninetyFifth {
#Expects Sorted Data
my $ninetyFifthLine = (@_ * .95) - 1;
return $_[$ninetyFifthLine];
}
© Server Fault or respective owner