From dffb7a8c78b1870b37301cd9e829490261270828 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 19 Mar 2017 00:56:39 +0200 Subject: [PATCH] fixed typo in sizeof() --- src/freebsd_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freebsd_sysctl.c b/src/freebsd_sysctl.c index d2440782..37fc8e52 100644 --- a/src/freebsd_sysctl.c +++ b/src/freebsd_sysctl.c @@ -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; } -- 2.39.2