@cryptotaxi247 / netdata-1 / commits / dffb7a8c7

fixed typo in sizeof()

Costa Tsaousis (ktsaou) committed Mar 19, 2017 at 00:56 UTC dffb7a8c78b1870b37301cd9e829490261270828
1 file changed +1 -1
src/freebsd_sysctl.c
+1 -1
@@ -330,7 +330,7 @@ int do_kern_cp_times(int update_every, usec_t dt) {
330
331 if(unlikely(number_of_cpus > old_number_of_cpus)) {
332 all_cpu_charts = reallocz(all_cpu_charts, sizeof(struct cpu_chart) * number_of_cpus);
333 - memset(&all_cpu_charts[old_number_of_cpus], 0, sizeof(struct softnet_chart) * (number_of_cpus - old_number_of_cpus));
333 + memset(&all_cpu_charts[old_number_of_cpus], 0, sizeof(struct cpu_chart) * (number_of_cpus - old_number_of_cpus));
334 old_number_of_cpus = number_of_cpus;
335 }
336