Skip to content

Commit 3edcdd2

Browse files
author
William Breathitt Gray
committed
rtlib: freebsd: Fix deprecated use of VM_METER
VM_METER has been deprecated for over 15 years; VM_TOTAL should be used to request the population of a struct vmtotal.
1 parent 1a6583d commit 3edcdd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtlib/freebsd/sys_fmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
FBCALL size_t fb_GetMemAvail( int mode )
99
{
10-
int mib[2] = { CTL_VM, VM_METER };
10+
int mib[2] = { CTL_VM, VM_TOTAL };
1111
struct vmtotal vmt;
1212
size_t size = sizeof(struct vmtotal);
1313

0 commit comments

Comments
 (0)