@cryptotaxi247 / netdata-1 / commits / b44b77885

Fix CID 382964: Code maintainability issues (SIZEOF_MISMATCH) (#15833)

Stelios Fragkakis committed Aug 17, 2023 at 23:53 UTC b44b77885c485279c3ee077e526855b17620beed
1 file changed +2 -2
streaming/replication.c
+2 -2
@@ -1838,7 +1838,7 @@ static void replication_main_cleanup(void *ptr) {
1838 }
1839 freez(replication_globals.main_thread.threads_ptrs);
1840 replication_globals.main_thread.threads_ptrs = NULL;
1841 - __atomic_sub_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t *), __ATOMIC_RELAXED);
1841 + __atomic_sub_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t), __ATOMIC_RELAXED);
1842
1843 aral_destroy(replication_globals.aral_rse);
1844 replication_globals.aral_rse = NULL;
@@ -1867,7 +1867,7 @@ void *replication_thread_main(void *ptr __maybe_unused) {
1867 if(--threads) {
1868 replication_globals.main_thread.threads = threads;
1869 replication_globals.main_thread.threads_ptrs = mallocz(threads * sizeof(netdata_thread_t *));
1870 - __atomic_add_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t *), __ATOMIC_RELAXED);
1870 + __atomic_add_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t), __ATOMIC_RELAXED);
1871
1872 for(int i = 0; i < threads ;i++) {
1873 char tag[NETDATA_THREAD_TAG_MAX + 1];