X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=doc%2Frpntutorial.1;h=b58314f655b808f163337c7c1af86a684aae7929;hb=6e58e96d05b3300ff189d192d490da081d5fdffa;hp=5a74d62c0f4faccadd12a7bf3c05aa193a35512f;hpb=ffa00ac697dccce18dca8880ca7a14066521ac5c;p=pkg-rrdtool.git diff --git a/doc/rpntutorial.1 b/doc/rpntutorial.1 index 5a74d62..b58314f 100644 --- a/doc/rpntutorial.1 +++ b/doc/rpntutorial.1 @@ -1,15 +1,7 @@ -.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14 +.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== -.de Sh \" Subsection heading -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp @@ -25,11 +17,11 @@ .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left -.\" double quote, and \*(R" will give a right double quote. | will give a -.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to -.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' -.\" expand to `' in nroff, nothing in troff, for use with C<>. -.tr \(*W-|\(bv\*(Tr +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- @@ -48,22 +40,25 @@ . ds R" '' 'br\} .\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" .\" If the F register is turned on, we'll generate index entries on stderr for -.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. -.if \nF \{\ +.ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} -.\" -.\" For nroff, turn off justification. Always turn off hyphenation; it makes -.\" way too many mistakes in technical documents. -.hy 0 -.if n .na +.el \{\ +. de IX +.. +.\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -129,7 +124,11 @@ .\" ======================================================================== .\" .IX Title "RPNTUTORIAL 1" -.TH RPNTUTORIAL 1 "2008-12-22" "1.3.99909060808" "rrdtool" +.TH RPNTUTORIAL 1 "2013-05-23" "1.4.8" "rrdtool" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh .SH "NAME" rpntutorial \- Reading RRDtool RPN Expressions by Steve Rader .SH "DESCRIPTION" @@ -219,9 +218,9 @@ multiplication operator: .PP .Vb 4 \& 1) 128,8,*,7000,GT,7000,128,8,*,IF eval 128,8,* result is 1024 -\& 2) 1024,7000,GT,7000,128,8,*,IF eval 1024,7000,GT result is 0 -\& 3) 0,128,8,*,IF eval 128,8,* result is 1024 -\& 4) 0,7000,1024,IF result is 1024 +\& 2) 1024 ,7000,GT,7000,128,8,*,IF eval 1024,7000,GT result is 0 +\& 3) 0, 7000,128,8,*,IF eval 128,8,* result is 1024 +\& 4) 0, 7000,1024, IF result is 1024 .Ve .PP Now let's go back to the first example of multiple logic operators, @@ -239,7 +238,7 @@ with \*(L"A\*(R": .Ve .PP read \*(L"if A then 10 else input\*(R". Now replace A with it's verbose -description again and\*(--voila!\-\-you have a easily readable description +description again and\*(--voila!\-\-you have an easily readable description of the expression: .PP .Vb 1 @@ -314,7 +313,7 @@ Answer 2: .PP .Vb 2 \& if (input <= 56000/8 ) { input*8 } else { 56000 } -\& input,56000,8,DIV,LT,input,8,*,56000,IF +\& input,56000,8,DIV,LE,input,8,*,56000,IF .Ve .PP Exercise 3: