]> arthur.barton.de Git - netdata.git/commitdiff
fixed typo in sizeof()
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 18 Mar 2017 22:56:39 +0000 (00:56 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 18 Mar 2017 22:56:39 +0000 (00:56 +0200)
src/freebsd_sysctl.c

index d24407827f0dfeb312851c8373c9ec6659c8a1cf..37fc8e5242b69ee2f1ad2c607d313e7cd1983cd2 100644 (file)
@@ -330,7 +330,7 @@ int do_kern_cp_times(int update_every, usec_t dt) {
 
             if(unlikely(number_of_cpus > old_number_of_cpus)) {
                 all_cpu_charts = reallocz(all_cpu_charts, sizeof(struct cpu_chart) * number_of_cpus);
-                memset(&all_cpu_charts[old_number_of_cpus], 0, sizeof(struct softnet_chart) * (number_of_cpus - old_number_of_cpus));
+                memset(&all_cpu_charts[old_number_of_cpus], 0, sizeof(struct cpu_chart) * (number_of_cpus - old_number_of_cpus));
                 old_number_of_cpus = number_of_cpus;
             }