From f4dc20e1c190d94ae64b2b94dac2f9b39827e7c9 Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Thu, 13 May 2021 16:23:47 +0200 Subject: Use size_t instead of int for vfs_bufspace_count in FreeBSD plugin (#11142) --- collectors/freebsd.plugin/freebsd_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/freebsd.plugin/freebsd_sysctl.c b/collectors/freebsd.plugin/freebsd_sysctl.c index 00898cd900..7d48e76dc0 100644 --- a/collectors/freebsd.plugin/freebsd_sysctl.c +++ b/collectors/freebsd.plugin/freebsd_sysctl.c @@ -969,7 +969,7 @@ int do_system_ram(int update_every, usec_t dt) { 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}, mib_cache_count[4] = {0, 0, 0, 0}, mib_vfs_bufspace[2] = {0, 0}, mib_free_count[4] = {0, 0, 0, 0}; vmmeter_t vmmeter_data; - int vfs_bufspace_count; + size_t vfs_bufspace_count; #if defined(NETDATA_COLLECT_LAUNDRY) static int mib_laundry_count[4] = {0, 0, 0, 0}; -- cgit v1.2.3