Use size_t instead of int for vfs_bufspace_count in FreeBSD plugin (#11142)
Daniel Engberg committed
May 13, 2021 at 16:23 UTC
f4dc20e1c190d94ae64b2b94dac2f9b39827e7c9
1 file changed
+1
-1
collectors/freebsd.plugin/freebsd_sysctl.c
+1
-1
@@ -969,7 +969,7 @@ int do_system_ram(int update_every, usec_t dt) {
969
static int mib_active_count[4] = {0, 0, 0, 0}, mib_inactive_count[4] = {0, 0, 0, 0}, mib_wire_count[4] = {0, 0, 0, 0},
970
mib_cache_count[4] = {0, 0, 0, 0}, mib_vfs_bufspace[2] = {0, 0}, mib_free_count[4] = {0, 0, 0, 0};
971
vmmeter_t vmmeter_data;
972
- int vfs_bufspace_count;
972
+ size_t vfs_bufspace_count;
973
974
#if defined(NETDATA_COLLECT_LAUNDRY)
975
static int mib_laundry_count[4] = {0, 0, 0, 0};