X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmans%2Foping.pod;h=313789c7d37fd89fa85bc8ec85721070ef4a4045;hb=d85b13b65a33de75bd8731f713db2cce7bcc41d7;hp=f0af718dc92bd47adc672bd1a5e38d411ae22b7f;hpb=64dd469ece6be8ef2a3cff60964290d753af6b7c;p=liboping.git diff --git a/src/mans/oping.pod b/src/mans/oping.pod index f0af718..313789c 100644 --- a/src/mans/oping.pod +++ b/src/mans/oping.pod @@ -166,6 +166,77 @@ I (ECN), even if the deprecated I (ToS) aliases were used to specify the bits of outgoing packets. +=item B<-u>|B<-U> + +I B<-u> forces UTF-8 output, B<-U> disables UTF-8 output. If +neither is given, the codeset is automatically determined from the locale. + +=item B<-g> B|B|B|B + +I Selects the graph to display. + +=over 4 + +=item B + +Do not show a graph. + +=item B + +Show a graph with time on the x-axis in a round-robin fashion, i.e. continue on +the left if the right edge is reached. The y-axis shows the round-trip time. +This is the default. + +=item B + +Show a I where the x-axis, i.e. the width of the window, is the +round-trip time. The entire width of the window it the ping interval, set with +the B<-i> option. + +The box is sized so it contains 50% of the replies. The vertical line shows the +median. The whiskers are sized to contain 95% of the replies -- 2.5% below the +whiskers and 2.5% above. + + |----------[#####|##########]--------------------------------------------| + ^ ^ ^ ^ ^ + 2.75% 25% 50% 75% 97.5% + +=item B + +Show a I of the round-trip times. The width of the window is taken +as round-trip time from 0ms on the left to the I (the B<-i> option, +default 1000ms) on the right. + +The height of the graph is scaled so that the most-used buckets vertically fills +the line. The buckets are colored green up to and including the median, yellow +up to and including the 95th percentile and red for the remainder. + +In addition, the histogram is colored, if supported by the terminal. The green +bars include the median (50% of responses), yellow bars include the 95th +percentile and outliers are colored red. + +=back + +=item B<-P> I + +Configures the latency percentile to report. I must be a number +between zero and 100, exclusively in both cases. In general, defaults to B<95>. +If B<-c> is given and a number less than 20, this would be the same as the +maximum. In this case the default is chosen so that it excludes the maximum, +e.g. if B<-cE5> is given, the default is I<80>. + +The calculated percentile has roughly millisecond precision. If precision is of +importance, read on for a more detailed explanation. In order to calculate the +percentile without keeping all replies in memory, I divides the +I (the B<-i> option) in 1000 "buckets". Each bucket counts the number +of packets received in the represented time. That means that the precision +decreases if the interval is increased, because each bucket represents a larger +(fraction of the) response time. The code looks for the first bucket +representing at least I responses and returns the upper-bound latency +represented by that bucket. Since the represented percentage may be larger than +the configured percentile, this algorithm I the actual percentile +by at most 1000th of I. + =item B<-Z> I If any hosts have a drop rate higher than I, where I is a @@ -175,6 +246,9 @@ limit will effectively disable the feature (the default). Setting the option to zero means that the exit status will only be zero if I replies for I hosts have been received. +The exit status will indicate the number of hosts with more than I +packets lost, up to a number of 255 failing hosts. + =back =head1 COLORS