summaryrefslogtreecommitdiffstats
path: root/collectors/slabinfo.plugin/slabinfo.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:59 +0000
commit1ee0c09c5742557e037df5421ca62abddb90ae22 (patch)
tree71c0fa48bb6d31d036c9badd7e038527f90d1a73 /collectors/slabinfo.plugin/slabinfo.c
parentReleasing debian version 1.30.1-1. (diff)
downloadnetdata-1ee0c09c5742557e037df5421ca62abddb90ae22.tar.xz
netdata-1ee0c09c5742557e037df5421ca62abddb90ae22.zip
Merging upstream version 1.31.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/slabinfo.plugin/slabinfo.c')
-rw-r--r--collectors/slabinfo.plugin/slabinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/slabinfo.plugin/slabinfo.c b/collectors/slabinfo.plugin/slabinfo.c
index 00e0d3913..863f440e4 100644
--- a/collectors/slabinfo.plugin/slabinfo.c
+++ b/collectors/slabinfo.plugin/slabinfo.c
@@ -126,7 +126,7 @@ static struct slabinfo *get_slabstruct(const char *name) {
}
}
- // Search it from the begining to the last position we used
+ // Search it from the beginning to the last position we used
for (s = slabinfo_root; s != slabinfo_last_used; s = s->next) {
if (hash == s->hash && !strcmp(name, s->name)) {
slabdebug("<-- Found existing slabstruct after root %s", slabinfo_root->name);
@@ -141,7 +141,7 @@ static struct slabinfo *get_slabstruct(const char *name) {
s->name = strdupz(name);
s->hash = hash;
- // Add it to the current postion
+ // Add it to the current position
if (slabinfo_root) {
slabdebug("<-- Creating new slabstruct after %s", slabinfo_last_used->name);
s->next = slabinfo_last_used->next;