@cryptotaxi247 / netdata-1 / commits / 68f16bb28

Spelling collectors (#10912)

Josh Soref committed Apr 14, 2021 at 05:52 UTC 68f16bb2859809e2b0ada0045bca9d5a8286a62f
30 files changed +74 -74
collectors/all.h
+2 -2
@@ -284,8 +284,8 @@
284 #define NETDATA_CHART_PRIO_TC_QOS 7000
285 #define NETDATA_CHART_PRIO_TC_QOS_PACKETS 7010
286 #define NETDATA_CHART_PRIO_TC_QOS_DROPPED 7020
287 -#define NETDATA_CHART_PRIO_TC_QOS_TOCKENS 7030
288 -#define NETDATA_CHART_PRIO_TC_QOS_CTOCKENS 7040
287 +#define NETDATA_CHART_PRIO_TC_QOS_TOKENS 7030
288 +#define NETDATA_CHART_PRIO_TC_QOS_CTOKENS 7040
289
290 // Infiniband
291 #define NETDATA_CHART_PRIO_INFINIBAND 7100
collectors/cgroups.plugin/sys_fs_cgroup.c
+3 -3
@@ -142,7 +142,7 @@ static enum cgroups_type cgroups_try_detect_version()
142 enum cgroups_systemd_setting systemd_setting;
143 int cgroups2_available = 0;
144
145 - // 1. check if cgroups2 availible on system at all
145 + // 1. check if cgroups2 available on system at all
146 FILE *f = mypopen("grep cgroup /proc/filesystems", &command_pid);
147 if (!f) {
148 error("popen failed");
@@ -168,7 +168,7 @@ static enum cgroups_type cgroups_try_detect_version()
168 return CGROUPS_AUTODETECT_FAIL;
169
170 if(systemd_setting == SYSTEMD_CGROUP_LEGACY || systemd_setting == SYSTEMD_CGROUP_HYBRID) {
171 - // curently we prefer V1 if HYBRID is set as it seems to be more feature complete
171 + // currently we prefer V1 if HYBRID is set as it seems to be more feature complete
172 // in the future we might want to continue here if SYSTEMD_CGROUP_HYBRID
173 // and go ahead with V2
174 return CGROUPS_V1;
@@ -1469,7 +1469,7 @@ static inline struct cgroup *cgroup_add(const char *id) {
1469 }
1470
1471 if(user_configurable) {
1472 - // allow the user to enable/disable this individualy
1472 + // allow the user to enable/disable this individually
1473 char option[FILENAME_MAX + 1];
1474 snprintfz(option, FILENAME_MAX, "enable cgroup %s", cg->chart_title);
1475 cg->enabled = (char) config_get_boolean("plugin:cgroups", option, def);
collectors/charts.d.plugin/charts.d.conf
+1 -1
@@ -1,6 +1,6 @@
1 # This is the configuration for charts.d.plugin
2
3 -# Each of its collectors can read configuration eiher from this file
3 +# Each of its collectors can read configuration either from this file
4 # or a NAME.conf file (where NAME is the collector name).
5 # The collector specific file has higher precedence.
6
collectors/charts.d.plugin/charts.d.plugin.in
+5 -5
@@ -130,7 +130,7 @@ update_every=${minimum_update_frequency} # this will be overwritten by the comma
130 charts_create="_create"
131 charts_update="_update"
132 charts_check="_check"
133 -charts_undescore="_"
133 +charts_underscore="_"
134
135 # when making iterations, charts.d can loop more frequently
136 # to prevent plugins missing iterations.
@@ -345,7 +345,7 @@ float2int() {
345 [ -z "${a}" ] && a="0"
346
347 # strip leading zeros from the integer part
348 - # base 10 convertion
348 + # base 10 conversion
349 a=$((10#$a))
350
351 # check the length of the decimal part
@@ -361,7 +361,7 @@ float2int() {
361 fi
362
363 # strip leading zeros from the decimal part
364 - # base 10 convertion
364 + # base 10 conversion
365 b=$((10#$b))
366
367 # store the result
@@ -467,9 +467,9 @@ all_enabled_charts() {
467 # check its config
468 #if [ -f "$userconfd/$chart.conf" ]
469 #then
470 - # if [ ! -z "$( cat "$userconfd/$chart.conf" | sed "s/^ \+//g" | grep -v "^$" | grep -v "^#" | grep -v "^$chart$charts_undescore" )" ]
470 + # if [ ! -z "$( cat "$userconfd/$chart.conf" | sed "s/^ \+//g" | grep -v "^$" | grep -v "^#" | grep -v "^$chart$charts_underscore" )" ]
471 # then
472 - # error "module's $chart config $userconfd/$chart.conf should only have lines starting with $chart$charts_undescore . Disabling it."
472 + # error "module's $chart config $userconfd/$chart.conf should only have lines starting with $chart$charts_underscore . Disabling it."
473 # continue
474 # fi
475 #fi
collectors/checks.plugin/plugin_checks.c
+1 -1
@@ -82,7 +82,7 @@ void *checks_main(void *ptr) {
82 now_realtime_timeval(&now);
83 loop_usec = dt_usec(&now, &last);
84 usec = loop_usec - susec;
85 - debug(D_PROCNETDEV_LOOP, "CHECK: last loop took %llu usec (worked for %llu, sleeped for %llu).", loop_usec, usec, susec);
85 + debug(D_PROCNETDEV_LOOP, "CHECK: last loop took %llu usec (worked for %llu, slept for %llu).", loop_usec, usec, susec);
86
87 if(usec < (localhost->rrd_update_every * USEC_PER_SEC / 2ULL)) susec = (localhost->rrd_update_every * USEC_PER_SEC) - usec;
88 else susec = localhost->rrd_update_every * USEC_PER_SEC / 2ULL;
collectors/cups.plugin/cups_plugin.c
+1 -1
@@ -49,7 +49,7 @@ static int netdata_priority = 100004;
49 http_t *http; // connection to the cups daemon
50
51 /*
52 - * Used to aggregate job metrics for a destination (and all destianations).
52 + * Used to aggregate job metrics for a destination (and all destinations).
53 */
54 struct job_metrics {
55 int is_collected; // flag if this was collected in the current cycle
collectors/diskspace.plugin/plugin_diskspace.c
+2 -2
@@ -4,7 +4,7 @@
4
5 #define PLUGIN_DISKSPACE_NAME "diskspace.plugin"
6
7 -#define DELAULT_EXCLUDED_PATHS "/proc/* /sys/* /var/run/user/* /run/user/* /snap/* /var/lib/docker/*"
7 +#define DEFAULT_EXCLUDED_PATHS "/proc/* /sys/* /var/run/user/* /run/user/* /snap/* /var/lib/docker/*"
8 #define DEFAULT_EXCLUDED_FILESYSTEMS "*gvfs *gluster* *s3fs *ipfs *davfs2 *httpfs *sshfs *gdfs *moosefs fusectl autofs"
9 #define CONFIG_SECTION_DISKSPACE "plugin:proc:diskspace"
10
@@ -100,7 +100,7 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
100 }
101
102 excluded_mountpoints = simple_pattern_create(
103 - config_get(CONFIG_SECTION_DISKSPACE, "exclude space metrics on paths", DELAULT_EXCLUDED_PATHS)
103 + config_get(CONFIG_SECTION_DISKSPACE, "exclude space metrics on paths", DEFAULT_EXCLUDED_PATHS)
104 , NULL
105 , mode
106 );
collectors/ebpf.plugin/ebpf.c
+4 -4
@@ -164,7 +164,7 @@ static void ebpf_exit(int sig)
164 int sid = setsid();
165 if (sid >= 0) {
166 debug(D_EXIT, "Wait for father %d die", getpid());
167 - sleep_usec(200000); // Sleep 200 miliseconds to father dies.
167 + sleep_usec(200000); // Sleep 200 milliseconds to father dies.
168 clean_loaded_events();
169 } else {
170 error("Cannot become session id leader, so I won't try to clean kprobe_events.\n");
@@ -328,7 +328,7 @@ void write_io_chart(char *chart, char *family, char *dwrite, long long vwrite, c
328 * @param id chart id
329 * @param title chart title
330 * @param units units label
331 - * @param family group name used to attach the chart on dashaboard
331 + * @param family group name used to attach the chart on dashboard
332 * @param charttype chart type
333 * @param context chart context
334 * @param order chart order
@@ -386,7 +386,7 @@ void ebpf_create_global_dimension(void *ptr, int end)
386 * @param id chart id
387 * @param title chart title
388 * @param units axis label
389 - * @param family group name used to attach the chart on dashaboard
389 + * @param family group name used to attach the chart on dashboard
390 * @param context chart context
391 * @param charttype chart type
392 * @param order order number of the specified chart
@@ -701,7 +701,7 @@ static void read_local_addresses()
701 }
702
703 /**
704 - * Start Ptherad Variable
704 + * Start Pthread Variable
705 *
706 * This function starts all pthread variables.
707 *
collectors/ebpf.plugin/ebpf.h
+1 -1
@@ -89,7 +89,7 @@ enum ebpf_module_indexes {
89 #endif
90 #endif
91
92 -// Chart defintions
92 +// Chart definitions
93 #define NETDATA_EBPF_FAMILY "ebpf"
94 #define NETDATA_EBPF_CHART_TYPE_LINE "line"
95 #define NETDATA_EBPF_CHART_TYPE_STACKED "stacked"
collectors/ebpf.plugin/ebpf_apps.c
+3 -3
@@ -265,7 +265,7 @@ struct target *get_apps_groups_target(struct target **agrt, const char *id, stru
265 * @param path the directory to search apps_%s.conf
266 * @param file the word to complement the file name.
267 *
268 - * @return It returns 0 on succcess and -1 otherwise
268 + * @return It returns 0 on success and -1 otherwise
269 */
270 int ebpf_read_apps_groups_conf(struct target **agdt, struct target **agrt, const char *path, const char *file)
271 {
@@ -470,7 +470,7 @@ static inline int managed_log(struct pid_stat *p, uint32_t log, int status)
470 /**
471 * Get PID entry
472 *
473 - * Get or allocate the PID entry for the specifid pid.
473 + * Get or allocate the PID entry for the specified pid.
474 *
475 * @param pid the pid to search the data.
476 *
@@ -664,7 +664,7 @@ static inline int read_proc_pid_stat(struct pid_stat *p, void *ptr)
664 * @param pid the current pid that we are working
665 * @param ptr a NULL value
666 *
667 - * @return It returns 1 on succcess and 0 otherwise
667 + * @return It returns 1 on success and 0 otherwise
668 */
669 static inline int collect_data_for_pid(pid_t pid, void *ptr)
670 {
collectors/ebpf.plugin/ebpf_process.c
+2 -2
@@ -464,7 +464,7 @@ static void ebpf_process_update_apps_data()
464 * @param family the chart family
465 * @param name the chart name
466 * @param axis the axis label
467 - * @param web the group name used to attach the chart on dashaboard
467 + * @param web the group name used to attach the chart on dashboard
468 * @param order the order number of the specified chart
469 * @param algorithm the algorithm used to make the charts.
470 */
@@ -494,7 +494,7 @@ static void ebpf_create_io_chart(char *family, char *name, char *axis, char *web
494 * @param family the chart family
495 * @param name the chart name
496 * @param axis the axis label
497 - * @param web the group name used to attach the chart on dashaboard
497 + * @param web the group name used to attach the chart on dashboard
498 * @param order the order number of the specified chart
499 */
500 static void ebpf_process_status_chart(char *family, char *name, char *axis,
collectors/ebpf.plugin/ebpf_socket.c
+4 -4
@@ -600,7 +600,7 @@ void ebpf_socket_create_apps_charts(struct ebpf_module *em, void *ptr)
600 * @param id the chart id
601 * @param title the chart title
602 * @param units the units label
603 - * @param family the group name used to attach the chart on dashaboard
603 + * @param family the group name used to attach the chart on dashboard
604 * @param order the chart order
605 * @param ptr the plot structure with values.
606 */
@@ -637,7 +637,7 @@ static void ebpf_socket_create_nv_chart(char *id, char *title, char *units,
637 * @param id the chart id
638 * @param title the chart title
639 * @param units the units label
640 - * @param family the group name used to attach the chart on dashaboard
640 + * @param family the group name used to attach the chart on dashboard
641 * @param order the chart order
642 * @param ptr the plot structure with values.
643 */
@@ -1713,7 +1713,7 @@ static void clean_allocated_socket_plot()
1713 }
1714
1715 /**
1716 - * Clean netowrk ports allocated during initializaion.
1716 + * Clean network ports allocated during initialization.
1717 *
1718 * @param ptr a pointer to the link list.
1719 */
@@ -2753,7 +2753,7 @@ static void link_dimension_name(char *port, uint32_t hash, char *value)
2753 } else {
2754 for (; names->next; names = names->next) {
2755 if (names->port == w->port) {
2756 - info("Dupplicated definition for a service, the name %s will be ignored. ", names->name);
2756 + info("Duplicated definition for a service, the name %s will be ignored. ", names->name);
2757 freez(names->name);
2758 names->name = w->name;
2759 names->hash = w->hash;
collectors/freebsd.plugin/freebsd_devstat.c
+2 -2
@@ -185,7 +185,7 @@ static struct disk *get_disk(const char *name) {
185
186 int do_kern_devstat(int update_every, usec_t dt) {
187
188 -#define DELAULT_EXLUDED_DISKS ""
188 +#define DEFAULT_EXCLUDED_DISKS ""
189 #define CONFIG_SECTION_KERN_DEVSTAT "plugin:freebsd:kern.devstat"
190 #define BINTIME_SCALE 5.42101086242752217003726400434970855712890625e-17 // this is 1000/2^64
191
@@ -222,7 +222,7 @@ int do_kern_devstat(int update_every, usec_t dt) {
222 CONFIG_BOOLEAN_AUTO);
223
224 excluded_disks = simple_pattern_create(
225 - config_get(CONFIG_SECTION_KERN_DEVSTAT, "disable by default disks matching", DELAULT_EXLUDED_DISKS)
225 + config_get(CONFIG_SECTION_KERN_DEVSTAT, "disable by default disks matching", DEFAULT_EXCLUDED_DISKS)
226 , NULL
227 , SIMPLE_PATTERN_EXACT
228 );
collectors/freebsd.plugin/freebsd_getifaddrs.c
+2 -2
@@ -143,7 +143,7 @@ static struct cgroup_network_interface *get_network_interface(const char *name)
143 int do_getifaddrs(int update_every, usec_t dt) {
144 (void)dt;
145
146 -#define DEFAULT_EXLUDED_INTERFACES "lo*"
146 +#define DEFAULT_EXCLUDED_INTERFACES "lo*"
147 #define DEFAULT_PHYSICAL_INTERFACES "igb* ix* cxl* em* ixl* ixlv* bge* ixgbe* vtnet* vmx* re*"
148 #define CONFIG_SECTION_GETIFADDRS "plugin:freebsd:getifaddrs"
149
@@ -177,7 +177,7 @@ int do_getifaddrs(int update_every, usec_t dt) {
177 CONFIG_BOOLEAN_AUTO);
178
179 excluded_interfaces = simple_pattern_create(
180 - config_get(CONFIG_SECTION_GETIFADDRS, "disable by default interfaces matching", DEFAULT_EXLUDED_INTERFACES)
180 + config_get(CONFIG_SECTION_GETIFADDRS, "disable by default interfaces matching", DEFAULT_EXCLUDED_INTERFACES)
181 , NULL
182 , SIMPLE_PATTERN_EXACT
183 );
collectors/freebsd.plugin/freebsd_getmntinfo.c
+2 -2
@@ -124,7 +124,7 @@ static struct mount_point *get_mount_point(const char *name) {
124 int do_getmntinfo(int update_every, usec_t dt) {
125 (void)dt;
126
127 -#define DELAULT_EXCLUDED_PATHS "/proc/*"
127 +#define DEFAULT_EXCLUDED_PATHS "/proc/*"
128 // taken from gnulib/mountlist.c and shortened to FreeBSD related fstypes
129 #define DEFAULT_EXCLUDED_FILESYSTEMS "autofs procfs subfs devfs none"
130 #define CONFIG_SECTION_GETMNTINFO "plugin:freebsd:getmntinfo"
@@ -144,7 +144,7 @@ int do_getmntinfo(int update_every, usec_t dt) {
144
145 excluded_mountpoints = simple_pattern_create(
146 config_get(CONFIG_SECTION_GETMNTINFO, "exclude space metrics on paths",
147 - DELAULT_EXCLUDED_PATHS)
147 + DEFAULT_EXCLUDED_PATHS)
148 , NULL
149 , SIMPLE_PATTERN_EXACT
150 );
collectors/freebsd.plugin/freebsd_sysctl.c
+1 -1
@@ -499,7 +499,7 @@ int do_dev_cpu_temperature(int update_every, usec_t dt) {
499 "temperature",
500 NULL,
501 "temperature",
502 - "cpu.temperatute",
502 + "cpu.temperature",
503 "Core temperature",
504 "Celsius",
505 "freebsd.plugin",
collectors/ioping.plugin/ioping.plugin.in
+1 -1
@@ -16,7 +16,7 @@ usage="$(basename "$0") [install] [-h] [-e]
16
17 where:
18 install install ioping binary
19 - -e, --env path to environment file (defauls to '/etc/netdata/.environment'
19 + -e, --env path to environment file (defaults to '/etc/netdata/.environment'
20 -h show this help text"
21
22 INSTALL=0
collectors/node.d.plugin/named/named.node.js
+2 -2
@@ -322,7 +322,7 @@ var named = {
322 service.module.chartFromMembers(service, global_requests, 'received_requests', 'Bind, Global Received Requests by IP version', 'requests/s', 'requests', 'named.requests', netdata.chartTypes.stacked, named.base_priority + 1, netdata.chartAlgorithms.incremental, 1, 1);
323
324 if(global_queries_success_enable === true)
325 - service.module.chartFromMembers(service, global_queries_success, 'global_queries_success', 'Bind, Global Successful Queries', 'queries/s', 'queries', 'named.queries_succcess', netdata.chartTypes.line, named.base_priority + 2, netdata.chartAlgorithms.incremental, 1, 1);
325 + service.module.chartFromMembers(service, global_queries_success, 'global_queries_success', 'Bind, Global Successful Queries', 'queries/s', 'queries', 'named.queries_success', netdata.chartTypes.line, named.base_priority + 2, netdata.chartAlgorithms.incremental, 1, 1);
326
327 if(protocol_queries_enable === true)
328 service.module.chartFromMembers(service, protocol_queries, 'protocols_queries', 'Bind, Global Queries by IP Protocol', 'queries/s', 'queries', 'named.protocol_queries', netdata.chartTypes.stacked, named.base_priority + 3, netdata.chartAlgorithms.incremental, 1, 1);
@@ -597,7 +597,7 @@ var named = {
597 },
598
599 // module.update()
600 - // this is called repeatidly to collect data, by calling
600 + // this is called repeatedly to collect data, by calling
601 // netdata.serviceExecute()
602 update: function(service, callback) {
603 service.execute(function(serv, data) {
collectors/node.d.plugin/sma_webbox/sma_webbox.node.js
+1 -1
@@ -226,7 +226,7 @@ var webbox = {
226 },
227
228 // module.update()
229 - // this is called repeatidly to collect data, by calling
229 + // this is called repeatedly to collect data, by calling
230 // netdata.serviceExecute()
231 update: function(service, callback) {
232 service.execute(function(serv, data) {
collectors/node.d.plugin/snmp/snmp.node.js
+1 -1
@@ -514,7 +514,7 @@ var snmp = {
514 },
515
516 // module.update()
517 - // this is called repeatidly to collect data, by calling
517 + // this is called repeatedly to collect data, by calling
518 // service.execute()
519 update: function (service, callback) {
520 service.execute(function (serv, data) {
collectors/perf.plugin/perf_plugin.c
+10 -10
@@ -9,7 +9,7 @@
9 // Hardware counters
10 #define NETDATA_CHART_PRIO_PERF_CPU_CYCLES 8800
11 #define NETDATA_CHART_PRIO_PERF_INSTRUCTIONS 8801
12 -#define NETDATA_CHART_PRIO_PERF_BRANCH_INSTRUSTIONS 8802
12 +#define NETDATA_CHART_PRIO_PERF_BRANCH_INSTRUCTIONS 8802
13 #define NETDATA_CHART_PRIO_PERF_CACHE 8803
14 #define NETDATA_CHART_PRIO_PERF_BUS_CYCLES 8804
15 #define NETDATA_CHART_PRIO_PERF_FRONT_BACK_CYCLES 8805
@@ -443,7 +443,7 @@ static void perf_send_metrics() {
443
444 // Software counters
445 migrations_chart_generated = 0,
446 - alighnment_chart_generated = 0,
446 + alignment_chart_generated = 0,
447 emulation_chart_generated = 0,
448
449 // Hardware cache counters
@@ -535,7 +535,7 @@ static void perf_send_metrics() {
535 , RRD_TYPE_PERF
536 , "branch_instructions"
537 , RRD_FAMILY_HW
538 - , NETDATA_CHART_PRIO_PERF_BRANCH_INSTRUSTIONS
538 + , NETDATA_CHART_PRIO_PERF_BRANCH_INSTRUCTIONS
539 , update_every
540 , PLUGIN_PERF_NAME
541 );
@@ -708,12 +708,12 @@ static void perf_send_metrics() {
708 // ------------------------------------------------------------------------
709
710 if(likely(perf_events[EV_ID_ALIGNMENT_FAULTS].updated)) {
711 - if(unlikely(!alighnment_chart_generated)) {
712 - alighnment_chart_generated = 1;
711 + if(unlikely(!alignment_chart_generated)) {
712 + alignment_chart_generated = 1;
713
714 - printf("CHART %s.%s '' 'Alighnment faults' 'faults' %s '' line %d %d %s\n"
714 + printf("CHART %s.%s '' 'Alignment faults' 'faults' %s '' line %d %d %s\n"
715 , RRD_TYPE_PERF
716 - , "alighnment_faults"
716 + , "alignment_faults"
717 , RRD_FAMILY_SW
718 , NETDATA_CHART_PRIO_PERF_ALIGNMENT
719 , update_every
@@ -725,7 +725,7 @@ static void perf_send_metrics() {
725 printf(
726 "BEGIN %s.%s\n"
727 , RRD_TYPE_PERF
728 - , "alighnment_faults"
728 + , "alignment_faults"
729 );
730 printf(
731 "SET %s = %lld\n"
@@ -1140,7 +1140,7 @@ void parse_command_line(int argc, char **argv) {
1140 plugin_enabled = 1;
1141 continue;
1142 }
1143 - else if(strcmp("alighnment", argv[i]) == 0) {
1143 + else if(strcmp("alignment", argv[i]) == 0) {
1144 perf_events[EV_ID_ALIGNMENT_FAULTS].disabled = 0;
1145 plugin_enabled = 1;
1146 continue;
@@ -1231,7 +1231,7 @@ void parse_command_line(int argc, char **argv) {
1231 "\n"
1232 " migrations enable CPU migrations chart\n"
1233 "\n"
1234 - " alighnment enable Alignment faults chart\n"
1234 + " alignment enable Alignment faults chart\n"
1235 "\n"
1236 " emulation enable Emulation faults chart\n"
1237 "\n"
collectors/plugins.d/pluginsd_parser.c
+1 -1
@@ -565,7 +565,7 @@ PARSER_RC pluginsd_overwrite(char **words, void *user, PLUGINSD_ACTION *plugins
565 UNUSED(words);
566
567 RRDHOST *host = ((PARSER_USER_OBJECT *) user)->host;
568 - debug(D_PLUGINSD, "requested a OVERWITE a variable");
568 + debug(D_PLUGINSD, "requested a OVERWRITE a variable");
569
570 struct label *new_labels = ((PARSER_USER_OBJECT *)user)->new_labels;
571 ((PARSER_USER_OBJECT *)user)->new_labels = NULL;
collectors/proc.plugin/ipc.c
+1 -1
@@ -209,7 +209,7 @@ int ipc_msq_get_info(char *msg_filename, struct message_queue **message_queue_ro
209 continue;
210 }
211
212 - // find the id in the linked list or create a new stucture
212 + // find the id in the linked list or create a new structure
213 int found = 0;
214
215 unsigned long long id = str2ull(procfile_lineword(ff, l, 1));
collectors/proc.plugin/proc_net_dev.c
+6 -6
@@ -841,7 +841,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
841 d->rd_tbytes = rrddim_add(d->st_bandwidth, "sent", NULL, -8, BITS_IN_A_KILOBIT, RRD_ALGORITHM_INCREMENTAL);
842
843 if(d->flipped) {
844 - // flip receive/trasmit
844 + // flip receive/transmit
845
846 RRDDIM *td = d->rd_rbytes;
847 d->rd_rbytes = d->rd_tbytes;
@@ -1064,7 +1064,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
1064 d->rd_rmulticast = rrddim_add(d->st_packets, "multicast", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
1065
1066 if(d->flipped) {
1067 - // flip receive/trasmit
1067 + // flip receive/transmit
1068
1069 RRDDIM *td = d->rd_rpackets;
1070 d->rd_rpackets = d->rd_tpackets;
@@ -1111,7 +1111,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
1111 d->rd_terrors = rrddim_add(d->st_errors, "outbound", NULL, -1, 1, RRD_ALGORITHM_INCREMENTAL);
1112
1113 if(d->flipped) {
1114 - // flip receive/trasmit
1114 + // flip receive/transmit
1115
1116 RRDDIM *td = d->rd_rerrors;
1117 d->rd_rerrors = d->rd_terrors;
@@ -1157,7 +1157,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
1157 d->rd_tdrops = rrddim_add(d->st_drops, "outbound", NULL, -1, 1, RRD_ALGORITHM_INCREMENTAL);
1158
1159 if(d->flipped) {
1160 - // flip receive/trasmit
1160 + // flip receive/transmit
1161
1162 RRDDIM *td = d->rd_rdrops;
1163 d->rd_rdrops = d->rd_tdrops;
@@ -1203,7 +1203,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
1203 d->rd_tfifo = rrddim_add(d->st_fifo, "transmit", NULL, -1, 1, RRD_ALGORITHM_INCREMENTAL);
1204
1205 if(d->flipped) {
1206 - // flip receive/trasmit
1206 + // flip receive/transmit
1207
1208 RRDDIM *td = d->rd_rfifo;
1209 d->rd_rfifo = d->rd_tfifo;
@@ -1249,7 +1249,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
1249 d->rd_tcompressed = rrddim_add(d->st_compressed, "sent", NULL, -1, 1, RRD_ALGORITHM_INCREMENTAL);
1250
1251 if(d->flipped) {
1252 - // flip receive/trasmit
1252 + // flip receive/transmit
1253
1254 RRDDIM *td = d->rd_rcompressed;
1255 d->rd_rcompressed = d->rd_tcompressed;
collectors/proc.plugin/proc_net_wireless.c
+3 -3
@@ -48,7 +48,7 @@ static struct netwireless {
48 const char *chart_family;
49
50 // charts
51 - // satus
51 + // status
52 RRDSET *st_status;
53
54 // Quality
@@ -119,7 +119,7 @@ static void netwireless_cleanup(struct timeval *timestamp)
119 {
120 struct netwireless *previous = NULL;
121 struct netwireless *current;
122 - // search it, from begining to the end
122 + // search it, from beginning to the end
123 for (current = netwireless_root; current;) {
124
125 if (timercmp(&current->updated, timestamp, <)) {
@@ -145,7 +145,7 @@ static struct netwireless *find_or_create_wireless(const char *name)
145 struct netwireless *wireless;
146 uint32_t hash = simple_hash(name);
147
148 - // search it, from begining to the end
148 + // search it, from beginning to the end
149 for (wireless = netwireless_root ; wireless ; wireless = wireless->next) {
150 if (unlikely(hash == wireless->hash && !strcmp(name, wireless->name))) {
151 return wireless;
collectors/proc.plugin/proc_pagetypeinfo.c
+2 -2
@@ -226,7 +226,7 @@ int do_proc_pagetypeinfo(int update_every, usec_t dt) {
226 for (p = 0; p < pagelines_cnt; p++) {
227 pgl = &pagelines[p];
228
229 - // Skip invalid, refused or empty pagelines if not explicitely requested
229 + // Skip invalid, refused or empty pagelines if not explicitly requested
230 if (!pgl
231 || do_detail == CONFIG_BOOLEAN_NO
232 || (do_detail == CONFIG_BOOLEAN_AUTO && pageline_total_count(pgl) == 0 && netdata_zero_metrics_enabled != CONFIG_BOOLEAN_YES))
@@ -236,7 +236,7 @@ int do_proc_pagetypeinfo(int update_every, usec_t dt) {
236 char setid[13+1+2+1+MAX_ZONETYPE_NAME+1+MAX_PAGETYPE_NAME+1];
237 snprintfz(setid, 13+1+2+1+MAX_ZONETYPE_NAME+1+MAX_PAGETYPE_NAME, "pagetype_Node%d_%s_%s", pgl->node, pgl->zone, pgl->type);
238
239 - // Skip explicitely refused charts
239 + // Skip explicitly refused charts
240 if (simple_pattern_matches(filter_types, setid))
241 continue;
242
collectors/proc.plugin/sys_class_infiniband.c
+2 -2
@@ -367,7 +367,7 @@ int do_sys_class_infiniband(int update_every, usec_t dt)
367
368 char buffer[FILENAME_MAX + 1];
369
370 - // Check if counters are availablea (mandatory)
370 + // Check if counters are available (mandatory)
371 // /sys/class/infiniband/<device>/ports/<port>/counters
372 char counters_dirname[FILENAME_MAX + 1];
373 snprintfz(counters_dirname, FILENAME_MAX, "%s/%s/%s", ports_dirname, port_dent->d_name, "counters");
@@ -377,7 +377,7 @@ int do_sys_class_infiniband(int update_every, usec_t dt)
377 continue;
378 closedir(counters_dir);
379
380 - // Hardware Counters are optionnal, used later
380 + // Hardware Counters are optional, used later
381 char hwcounters_dirname[FILENAME_MAX + 1];
382 snprintfz(
383 hwcounters_dirname, FILENAME_MAX, "%s/%s/%s", ports_dirname, port_dent->d_name, "hw_counters");
collectors/slabinfo.plugin/slabinfo.c
+2 -2
@@ -126,7 +126,7 @@ static struct slabinfo *get_slabstruct(const char *name) {
126 }
127 }
128
129 - // Search it from the begining to the last position we used
129 + // Search it from the beginning to the last position we used
130 for (s = slabinfo_root; s != slabinfo_last_used; s = s->next) {
131 if (hash == s->hash && !strcmp(name, s->name)) {
132 slabdebug("<-- Found existing slabstruct after root %s", slabinfo_root->name);
@@ -141,7 +141,7 @@ static struct slabinfo *get_slabstruct(const char *name) {
141 s->name = strdupz(name);
142 s->hash = hash;
143
144 - // Add it to the current postion
144 + // Add it to the current position
145 if (slabinfo_root) {
146 slabdebug("<-- Creating new slabstruct after %s", slabinfo_last_used->name);
147 s->next = slabinfo_last_used->next;
collectors/statsd.plugin/statsd.c
+4 -4
@@ -153,7 +153,7 @@ typedef struct statsd_index {
153
154 STATSD_METRIC *first; // the linked list of metrics (new metrics are added in front)
155 STATSD_METRIC *first_useful; // the linked list of useful metrics (new metrics are added in front)
156 - STATSD_FIRST_PTR_MUTEX; // when mutli-threading is enabled, a lock to protect the linked list
156 + STATSD_FIRST_PTR_MUTEX; // when multi-threading is enabled, a lock to protect the linked list
157
158 STATS_METRIC_OPTIONS default_options; // default options for all metrics in this index
159 } STATSD_INDEX;
@@ -182,7 +182,7 @@ typedef struct statsd_app_chart_dimension {
182
183 SIMPLE_PATTERN *metric_pattern; // set when the 'metric' is a simple pattern
184
185 - collected_number multiplier; // the multipler of the dimension
185 + collected_number multiplier; // the multiplier of the dimension
186 collected_number divisor; // the divisor of the dimension
187 RRDDIM_FLAGS flags; // the RRDDIM flags for this dimension
188
@@ -1340,7 +1340,7 @@ static int statsd_readfile(const char *filename, STATSD_APP *app, STATSD_APP_CHA
1340
1341 char *dim_name = words[i++];
1342 char *type = words[i++];
1343 - char *multipler = words[i++];
1343 + char *multiplier = words[i++];
1344 char *divisor = words[i++];
1345 char *options = words[i++];
1346
@@ -1371,7 +1371,7 @@ static int statsd_readfile(const char *filename, STATSD_APP *app, STATSD_APP_CHA
1371 , chart
1372 , metric_name
1373 , dim_name
1374 - , (multipler && *multipler)?str2l(multipler):1
1374 + , (multiplier && *multiplier)?str2l(multiplier):1
1375 , (divisor && *divisor)?str2l(divisor):1
1376 , flags
1377 , string2valuetype(type, line, filename)
collectors/tc.plugin/plugin_tc.c
+2 -2
@@ -558,7 +558,7 @@ static inline void tc_device_commit(struct tc_device *d) {
558 , "tokens"
559 , PLUGIN_TC_NAME
560 , NULL
561 - , NETDATA_CHART_PRIO_TC_QOS_TOCKENS
561 + , NETDATA_CHART_PRIO_TC_QOS_TOKENS
562 , localhost->rrd_update_every
563 , RRDSET_TYPE_LINE
564 );
@@ -614,7 +614,7 @@ static inline void tc_device_commit(struct tc_device *d) {
614 , "ctokens"
615 , PLUGIN_TC_NAME
616 , NULL
617 - , NETDATA_CHART_PRIO_TC_QOS_CTOCKENS
617 + , NETDATA_CHART_PRIO_TC_QOS_CTOKENS
618 , localhost->rrd_update_every
619 , RRDSET_TYPE_LINE
620 );