summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 05772c3)
raw | patch | inline | side by side (parent: 05772c3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 May 2004 20:52:16 +0000 (20:52 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 May 2004 20:52:16 +0000 (20:52 +0000) |
THREADS | patch | blob | history | |
doc/rrdthreads.pod | patch | blob | history | |
doc/rrdtutorial.pod | patch | blob | history | |
doc/rrdupdate.pod | patch | blob | history | |
src/rrd_cgi.c | patch | blob | history | |
src/rrd_resize.c | patch | blob | history | |
src/rrd_restore.c | patch | blob | history | |
src/rrd_tool.c | patch | blob | history | |
src/rrd_update.c | patch | blob | history |
index 152a2c3cab36f1ad7ff03fb3fb0cf9ccce2818ab..b0481638e9ab1dfca9418b9ed2246ac776ebeb3b 100644 (file)
--- a/THREADS
+++ b/THREADS
getopt uses global variables and behaves badly in a multithreaded
application when called concurrently. Instead provide a *_r function
taking all options as function parameters. You may provide argc and
- **argv arguments for variable lenght argument lists. See
+ **argv arguments for variable length argument lists. See
rrd_update_r as an example.
* Do not use the parsetime function!
diff --git a/doc/rrdthreads.pod b/doc/rrdthreads.pod
index 6d40c4ef921e3b2aae3b84f101b9a16ce58421ff..00f5e02d91f1388e71a69743b5c0d63935a3a91c 100644 (file)
--- a/doc/rrdthreads.pod
+++ b/doc/rrdthreads.pod
It uses lots of global vars. You may use it in functions not designed
to be thread-safe like functions wrapping the C<_r> version of some
-operation (eg. C<rrd_create>, but not in C<rrd_create_r>)
+operation (e.g., C<rrd_create>, but not in C<rrd_create_r>)
=back
diff --git a/doc/rrdtutorial.pod b/doc/rrdtutorial.pod
index f64a6b57d6aebe5051c312ff502b40b78a8efc36..85589c25d977dff5464918e1d961c75043e56038 100644 (file)
--- a/doc/rrdtutorial.pod
+++ b/doc/rrdtutorial.pod
RRDtool works with with Round Robin Databases (RRDs). It stores and retrieves
data from them.
-=head2 What data can be put into an RDD ?
+=head2 What data can be put into an RRD ?
You name it, it will probably fit. You should be able to measure some value
at several points in time and provide this information to RRDtool. If you
First of all: read it again! You may have missed something.
If you are unable to compile the sources and you have a fairly common
-OS, it will probably not be the fault of RRDtool. There may be precompiled
+OS, it will probably not be the fault of RRDtool. There may be pre-compiled
versions around on the Internet. If they come from trusted sources, get
one of those.
If on the other hand the program works but does not give you the
this document. It holds one data source (DS) named "speed" that gets
built from a counter. This counter is read every five minutes (default)
In the same database two round robin archives (RRAs) are kept, one
-averages the data every time it is read (eg there's nothing to average)
+averages the data every time it is read (e.g., there's nothing to average)
and keeps 24 samples (24 times 5 minutes is 2 hours). The other averages
-6 values (half hour) and contains 10 of such averages (eg 5 hours)
+6 values (half hour) and contains 10 of such averages (e.g., 5 hours)
The remaining options will be discussed later on.
RRDtool works with special time stamps coming from the UNIX world.
Right, lets continue to the start of our OID: we had 1.3.6.1.2.1
From there, we are especially interested in the branch "interfaces"
-which has number 2 (eg 1.3.6.1.2.1.2 or 1.3.6.1.2.1.interfaces).
+which has number 2 (e.g., 1.3.6.1.2.1.2 or 1.3.6.1.2.1.interfaces).
First, we have to get some SNMP program. First look if there is a
pre-compiled package available for your OS. This is the preferred way.
interval is 297 seconds and also the counter increased with 297. Again
RRDtool alters the value and stores 300 as it should be.
- in the RDD in reality
+ in the RRD in reality
time+000: 0 delta="U" time+000: 0 delta="U"
time+300: 300 delta=300 time+300: 300 delta=300
diff --git a/doc/rrdupdate.pod b/doc/rrdupdate.pod
index 50a656eb8b06afbf1269db7878d7f4cc35f48a5c..37040781bfb1e7353cbd5f04c59d1ba0f7049d7a 100644 (file)
--- a/doc/rrdupdate.pod
+++ b/doc/rrdupdate.pod
The remaining elements of the argument are DS updates. The order of this list is
the same as the order the data sources were defined in the RRA.
If there is no data for a certain data-source, the letter
-B<U> (eg. N:0.1:U:1) can be defined.
+B<U> (e.g., N:0.1:U:1) can be defined.
The format of the value acquired from the data source is dependent of the
data source type chosen. Normally it will be numeric, but the data acquisition
diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c
index 8a292c70a5b67b7078b343330bc054b0e3fc5e6b..5a47dc2b6384c5e28fd95bdb27e2510e006750b4 100644 (file)
--- a/src/rrd_cgi.c
+++ b/src/rrd_cgi.c
}
#ifdef DEBUG_PARSER
- printf("parse(): handeling tag '%s'\n", tag);
+ printf("parse(): handling tag '%s'\n", tag);
#endif
/* Scan for arguments following the tag;
diff --git a/src/rrd_resize.c b/src/rrd_resize.c
index 39941c1cd4ada12fbf79bca413e44a904edb588a..ddbf9ecce2c87ff2d3bf8f9acee9e96b5a723842 100644 (file)
--- a/src/rrd_resize.c
+++ b/src/rrd_resize.c
fwrite(rrdnew.rra_ptr,sizeof(rra_ptr_t),rrdnew.stat_head->rra_cnt,outfile);
/* Move the CDPs from the old to the new database.
- ** This can be made (much) faster but isn't worth the efford. Clarity
+ ** This can be made (much) faster but isn't worth the effort. Clarity
** is much more important.
*/
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 842f33bb03773fc51d9f150569d4f533ec7ecb21..e759c1c3028a6c895aeef2ab4ddc2f21e4adce1d 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
void parse_patch1028_CDP_params(char **buf, rrd_t *rrd, int rra_index, int ds_index);
void parse_FAILURES_history(char **buf, rrd_t *rrd, int rra_index, int ds_index);
-/* convert all ocurances of <BlaBlaBla> to <blablabla> */
+/* convert all occurrences of <BlaBlaBla> to <blablabla> */
void xml_lc(char* buf){
int intag=0;
while (eat_tag(&ptr2,"rra") == 1){
rrd->stat_head->rra_cnt++;
- /* alocate and reset rra definition areas */
+ /* allocate and reset rra definition areas */
if((rrd->rra_def = rrd_realloc(rrd->rra_def,rrd->stat_head->rra_cnt*sizeof(rra_def_t)))==NULL){
rrd_set_error("allocating rra_def"); return -1; }
memset(&(rrd->rra_def[rrd->stat_head->rra_cnt-1]), 0, sizeof(rra_def_t));
- /* alocate and reset consolidation point areas */
+ /* allocate and reset consolidation point areas */
if((rrd->cdp_prep = rrd_realloc(rrd->cdp_prep,
rrd->stat_head->rra_cnt
*rrd->stat_head->ds_cnt*sizeof(cdp_prep_t)))==NULL){
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index a462248060a21f5222ab9da2c0b4bf4198f88875..6892ac57ffb926b12b536bfe0dd7b299bef23c09 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
"\t\t[ time:value[:value...] ..]\n\n";
char help_updatev[] =
- "* updatev - a verbose verion of update\n"
+ "* updatev - a verbose version of update\n"
"\treturns information about values, RRAs, and datasources updated\n\n"
"\trrdtool updatev filename\n"
"\t\t--template|-t ds-name:ds-name:...\n"
"\t\t[--aberrant-reset ds-name]\n\n";
char help_resize[] =
- " * resize - alter the lenght of one of the RRAs in an RRD\n\n"
+ " * resize - alter the length of one of the RRAs in an RRD\n\n"
"\trrdtool resize filename rranum GROW|SHRINK rows\n\n";
char help_xport[] =
"\t\t[XPORT:vname:legend]\n\n";
char help_quit[] =
- " * quit - closeing a session in remote mode\n\n"
+ " * quit - closing a session in remote mode\n\n"
"\trrdtool quit\n\n";
char help_ls[] =
char help_cd[] =
" * cd - changes the current directory\n\n"
- "\trrdtool cd new direcotry\n\n";
+ "\trrdtool cd new directory\n\n";
char help_mkdir[] =
- " * mkdir - creates a new direcotry\n\n"
- "\trrdtool mkdir newdirecotryname\n\n";
+ " * mkdir - creates a new directory\n\n"
+ "\trrdtool mkdir newdirectoryname\n\n";
char help_lic[] =
"RRDtool is distributed under the Terms of the GNU General\n"
}
#if ! defined(HAVE_CHROOT) || ! defined(HAVE_GETUID)
if (getuid()==0 && ! ChangeRoot){
- printf("ERROR: chdir security problem - rrdtool is runnig as "
+ printf("ERROR: chdir security problem - rrdtool is running as "
"root an no chroot!\n");
return(0);
}
}
#if ! defined(HAVE_CHROOT) || ! defined(HAVE_GETUID)
if (getuid()==0 && ! ChangeRoot){
- printf("ERROR: mkdir security problem - rrdtool is runnig as "
+ printf("ERROR: mkdir security problem - rrdtool is running as "
"root an no chroot!\n");
return(0);
}
diff --git a/src/rrd_update.c b/src/rrd_update.c
index 957cf773b83fb1dcadc3a5f25971bba25b231e10..117de6a796fa7a6b8b19a04b3a264c26c49c1dba 100644 (file)
--- a/src/rrd_update.c
+++ b/src/rrd_update.c
*****************************************************************************
* $Id$
* $Log$
+ * Revision 1.16 2004/05/25 20:52:16 oetiker
+ * fix spelling and syntax, especially in messages that are printed -- Mike Slifcak
+ *
* Revision 1.15 2004/05/25 20:51:49 oetiker
* Update displayed copyright messages to be consistent. -- Mike Slifcak
*
}
pdp_new[i]= rrd_diff(updvals[i+1],rrd.pdp_prep[i].last_ds);
if(dst_idx == DST_COUNTER) {
- /* simple overflow catcher sugestet by andres kroonmaa */
+ /* simple overflow catcher suggested by Andres Kroonmaa */
/* this will fail terribly for non 32 or 64 bit counters ... */
/* are there any others in SNMP land ? */
if (pdp_new[i] < (double)0.0 )