]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix typos found by codespell
authorWolfgang Stöggl <c72578@yahoo.de>
Wed, 14 Aug 2019 09:44:25 +0000 (11:44 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 14 Aug 2019 16:21:29 +0000 (18:21 +0200)
- Typos were found by codespell v1.15.0

doc/rrd-beginners.pod
doc/rrd_pdpcalc.pod
doc/rrdgraph_rpn.pod
examples/perftest.pl.in
src/rrd_format.h
src/rrd_graph.c
src/rrd_modify.c
src/rrd_parsetime.c
src/rrd_update.c
tests/pdp-calc1

index 861559dec7ad25b21e96d152308a13920839f76b..e252506344979faef58c4569027f40e404590e24 100644 (file)
@@ -171,7 +171,7 @@ number of PDPs. This RRA will hold I<rows> CDPs.
 
 Lets have a look at the example above. For the first RRA, 12 (steps)
 PDPs (DS variables) are AVERAGEed (CF) to form one CDP. 24 (rows) of
-theses CDPs are archived. Each PDP occurs at 300 seconds. 12 PDPs
+these CDPs are archived. Each PDP occurs at 300 seconds. 12 PDPs
 represent 12 times 300 seconds which is 1 hour. It means 1 CDP (which
 is equal to 12 PDPs) represents data worth 1 hour. 24 such CDPs
 represent 1 day (1 hour times 24 CDPs). This means, this RRA is an
index c2fca6be9ab8fa38ed6e8a33e94bef06026e6bb5..4e090b8d8e99ee2fd5ff2523464a0c342277612d 100644 (file)
@@ -18,7 +18,7 @@ L<http://rrdtool.vandenbogaerdt.nl/process.php> - By Alex van den Bogaerdt. This
 
 L<https://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html> - This one is on the official site. Actually it's the manual page for "rrdcreate", and it reveals what's under the hood with regard to PDP calculation in its "The HEARTBEAT and the STEP" section.
 
-The text graph by Don Baarda provides a vivid explanation on how B<UNKOWN> data are produced and how heartbeat value can influence in the sampling. Unfortunately, it fails to give a clear method by which PDPs are calculated.
+The text graph by Don Baarda provides a vivid explanation on how B<UNKNOWN> data are produced and how heartbeat value can influence in the sampling. Unfortunately, it fails to give a clear method by which PDPs are calculated.
 
 L<https://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html> - Another detailed official tutorial by Alex van den Bogaerdt. Similarly, it only provides examples with data evenly and exactly distributed according to the step set.
 
index 3026bed93d63aafa8ed9e8f3cc4d077d14827b5a..c04e106d1d25ed225945a3103875d7539f13c027 100644 (file)
@@ -203,7 +203,7 @@ Example: C<CDEF:x=a,b,c,d,4,STDEV>
 I<percent>,I<count>,B<PERCENT>
 
 pop two elements (I<count>,I<percent>) from the stack. Now pop I<count> element, order them by size
-(while the smalles elements are -INF, the largest are INF and NaN is larger than -INF but smaller
+(while the smallest elements are -INF, the largest are INF and NaN is larger than -INF but smaller
 than anything else. No pick the element from the ordered list where I<percent> of the elements
 are equal then the one picked. Push the result back on to the stack.
 
index a71c655f12774047bae43bd535edb66939b07c1b..4ac0c96db279b3261a7d1133a690f93940dc3356 100755 (executable)
@@ -144,7 +144,7 @@ sub main (){
     mkdir "db-$$" or die $!;
     chdir "db-$$";
 
-    my $step = $Chunk; # number of rrds to creat for every round
+    my $step = $Chunk; # number of rrds to create for every round
     
     my @path;
     my $time=int(time);
index f55462db1b11c1c63a5774f9321bb0897dff4669..dac7d38cb4050509fd0e8f9194f87f4fdbaf99e3 100644 (file)
@@ -54,7 +54,7 @@ typedef union unival {
  * ds - Data Source (ds) providing input to the database. A Data Source (ds)
  *       can be a traffic counter, a temperature, the number of users logged
  *       into a system. The rrd database format can handle the input of
- *       several Data Sources (ds) in a singe database.
+ *       several Data Sources (ds) in a single database.
  *  
  * dst - Data Source Type (dst). The Data Source Type (dst) defines the rules
  *       applied to Build Primary Data Points from the input provided by the
index f52c386c330c6cca3441f6fa37b393f14f74dc09..f0e81314494131c1b4134fd5810a6202fae894e8 100644 (file)
@@ -1320,7 +1320,7 @@ int data_calc(
 }
 
 /* from http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm */
-/* yes we are loosing precision by doing tos with floats instead of doubles
+/* yes we are losing precision by doing tos with floats instead of doubles
    but it seems more stable this way. */
 
 static int AlmostEqual2sComplement(
@@ -3234,7 +3234,7 @@ int grid_paint(
                 return -1;
         }
 
-        /* dont draw horizontal grid if there is no min and max val */
+        /* don't draw horizontal grid if there is no min and max val */
         if (!res) {
             char     *nodata = "No Data found";
 
@@ -3581,7 +3581,7 @@ int graph_size_location(
     }
 
     if (im->title && im->title[0] != '\0') {
-        /* The title is placed "inbetween" two text lines so it
+        /* The title is placed "in between" two text lines so it
          ** automatically has some vertical spacing.  The horizontal
          ** spacing is added here, on each side.
          */
@@ -6369,7 +6369,7 @@ image_title_t graph_title_split(
                 }
         }
 
-        // We previous found a delimitor so lets null terminate it
+        // We previous found a delimiter so lets null terminate it
         if (found_pos)
             *found_pos = '\0';
 
@@ -6382,7 +6382,7 @@ image_title_t graph_title_split(
             consumed = found_pos;
         }
 
-        // move the consumed pointer past any delimitor, so we can loop around again
+        // move the consumed pointer past any delimiter, so we can loop around again
         consumed = consumed + found_size;
     }
     // must not create more than MAX lines, so must stop splitting
index 8b61bdc345ed60d7f14a7d4ed81cc24a7d7b837c..6de792626fe2eb95e5abc4972ee29e78f51934de 100644 (file)
@@ -1426,7 +1426,7 @@ int handle_modify(const rrd_t *in, const char *outfilename,
            }
            rraopcnt++;
        } else {
-           rrd_set_error("unparseable argument: %s", argv[i]);
+           rrd_set_error("unparsable argument: %s", argv[i]);
            rc = -1;
            goto done;
        }
index 3a34f454785111311e8c571ad5f67cb19c706832..f8c32d2ce79620d81c7c0b381c5cd37ceb821574 100644 (file)
@@ -27,7 +27,7 @@
  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WEHTHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
index 86228f1e0f26a90e62169f54e2e69e3056e2eab3..6cd023ed4fc4426835a5bf6c498023e581c72f3f 100644 (file)
@@ -1393,7 +1393,7 @@ static int get_time_from_reading(
         *current_time = floor(tmp);
         *current_time_usec = (long) ((tmp - (double) *current_time) * 1e6f);
     }
-    /* dont do any correction for old version RRDs */
+    /* don't do any correction for old version RRDs */
     if (version < 3)
         *current_time_usec = 0;
 
@@ -1436,7 +1436,7 @@ static int update_pdp_prep(
 
         /* NOTE: DST_CDEF should never enter this if block, because
          * updvals[ds_idx+1][0] is initialized to 'U'; unless the caller
-         * accidently specified a value for the DST_CDEF. To handle this case,
+         * accidentally specified a value for the DST_CDEF. To handle this case,
          * an extra check is required. */
 
         if ((updvals[ds_idx + 1][0] != 'U') &&
@@ -1955,7 +1955,7 @@ static int update_cdp_prep(
     unsigned long ds_idx, cdp_idx;
 
     /* update CDP_PREP areas */
-    /* loop over data soures within each RRA */
+    /* loop over data sources within each RRA */
     for (ds_idx = 0; ds_idx < rrd->stat_head->ds_cnt; ds_idx++) {
 
         cdp_idx = rra_idx * rrd->stat_head->ds_cnt + ds_idx;
index 1cc4fa2afc240636fc1f035d8d8bf3eddfddb336..c8e018de61bd4f510c1cbd201f9e3bc328d86f8e 100755 (executable)
@@ -41,7 +41,7 @@ $RRDTOOL create ${BUILD}.rrd --start 1548500640 --step 60 \
 
 report "create" 
 
-declare -a UPDATE_LIST=("1548500700:0:0:0"       # Initalize PDP with 0
+declare -a UPDATE_LIST=("1548500700:0:0:0"       # Initialize PDP with 0
                         "1548500760:1:60:60"     # 1.0 steps value 1
                         "1548500790:0:60:0"      # 0.5 steps value 0
                         "1548501000:1:270:210"   # 3.5 steps value 1