summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/ipc.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
commit81581f9719bc56f01d5aa08952671d65fda9867a (patch)
tree0f5c6b6138bf169c23c9d24b1fc0a3521385cb18 /collectors/proc.plugin/ipc.c
parentReleasing debian version 1.38.1-1. (diff)
downloadnetdata-81581f9719bc56f01d5aa08952671d65fda9867a.tar.xz
netdata-81581f9719bc56f01d5aa08952671d65fda9867a.zip
Merging upstream version 1.39.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/proc.plugin/ipc.c')
-rw-r--r--collectors/proc.plugin/ipc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/collectors/proc.plugin/ipc.c b/collectors/proc.plugin/ipc.c
index adfc15be5..b166deba6 100644
--- a/collectors/proc.plugin/ipc.c
+++ b/collectors/proc.plugin/ipc.c
@@ -212,7 +212,7 @@ int ipc_msq_get_info(char *msg_filename, struct message_queue **message_queue_ro
// find the id in the linked list or create a new structure
int found = 0;
- unsigned long long id = str2ull(procfile_lineword(ff, l, 1));
+ unsigned long long id = str2ull(procfile_lineword(ff, l, 1), NULL);
for(msq = *message_queue_root; msq ; msq = msq->next) {
if(unlikely(id == msq->id)) {
found = 1;
@@ -227,8 +227,8 @@ int ipc_msq_get_info(char *msg_filename, struct message_queue **message_queue_ro
msq->id = id;
}
- msq->messages = str2ull(procfile_lineword(ff, l, 4));
- msq->bytes = str2ull(procfile_lineword(ff, l, 3));
+ msq->messages = str2ull(procfile_lineword(ff, l, 4), NULL);
+ msq->bytes = str2ull(procfile_lineword(ff, l, 3), NULL);
msq->found = 1;
}
@@ -268,7 +268,7 @@ int ipc_shm_get_info(char *shm_filename, struct shm_stats *shm) {
}
shm->segments++;
- shm->bytes += str2ull(procfile_lineword(ff, l, 3));
+ shm->bytes += str2ull(procfile_lineword(ff, l, 3), NULL);
}
return 0;