]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fix some grammar errors and typos (#825)
authorTianpeng Xia <xtpeqii@hotmail.com>
Sun, 29 Oct 2017 10:45:27 +0000 (18:45 +0800)
committerTobias Oetiker <tobi@oetiker.ch>
Sun, 29 Oct 2017 10:45:27 +0000 (11:45 +0100)
doc/PDP_calculation_explanation.pod

index 87515daf60c913b08621d24549d1ef4c9666a540..f4663eeea3d5c8619955b779a908c10ede9d233f 100644 (file)
@@ -46,11 +46,11 @@ To provide an ASCII-friendly explanation, I will explain both versions with the
  
 The X axis means time slots( each second denotes one slot) and the Y axis means the value.
 
-Let's make everything a little more clear:
+Let's make everything a little clearer:
 
 - The step is 5
 
-- each PDP get calculate gets updated only if a value arrives at or after the last slot of the PDP, for instance, the last slot of the PDP from 16 to 20 is 20
+- each PDP gets updated only if a value arrives at or after the last slot of the PDP, for instance, the last slot of the PDP from 16 to 20 is 20
 
 - The heartbeat is 20, so the samples during the entire 7-17 period is not discarded
 
@@ -107,7 +107,7 @@ For example, the value at slot 17 comes after the last slot of PDP(11-15). Also,
 
 =head3 The official version
 
-PDPs are B<always computed in terms of the steps which the next update spans>, be it 1 step, 2 steps or n steps; in other words, there PDPs are computed B<together>. 
+PDPs are B<always computed in terms of the steps which the next update spans>, be it 1 step, 2 steps or n steps; in other words, PDPs may be computed B<together>. 
 
 For example, the update at slot 17 spans PDP(6-10) and PDP(11-15) because the B<immediate> previous value is at 7 and 7 is within 6 and 10 , and 17 is after 15. PDP(1-5) and PDP(16-20) are not included since the update at slot 7 has already triggered the calculation for PDP(1-5) and the update at slot 17 comes before the last slot of PDP(16-20) which is 20. 
 
@@ -119,16 +119,16 @@ If you are still confused, don't worry, an example is here to help you.
 
 Let's get our hands dirty with some commands
 
- rrdtool create target.rrd --start 1000000000  --step 5 DS:mem:GAUGE:20:0:100 RRA:AVERAGE:0.5:1:10 E<10> E<8>
+ rrdtool create target.rrd --start 1000000000  --step 5 DS:mem:GAUGE:20:0:100 RRA:AVERAGE:0.5:1:10
  rrdtool update target.rrd 1000000003:8 1000000006:1 1000000017:6 \  
  1000000020:7 1000000021:7 1000000022:4 \  
  1000000023:3 1000000036:1 1000000037:2 \   
  1000000038:3 1000000039:3 1000000042:5   
  rrdtool fetch target.rrd AVERAGE --start 1000000000 --end 1000000045
 
-Basically, the above codes contain 3 commands: create, update and fetch. First we need create a new rrd file, and then we feed in some data and last we fetch all the PDPs from the rrd.
+Basically, the above codes contain 3 commands: create, update and fetch. First create a new rrd file, and then we feed in some data and last we fetch all the PDPs from the rrd.
 
-=head2 Focus on one single steps
+=head2 Focus on single steps
 
 In order to provide a detailed explanation, each the calculation process of each PDP is provided.