Changeset View
Changeset View
Standalone View
Standalone View
head/net/bmon/files/patch-src_in_sysctl.c
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/in_sysctl.c.orig 2017-05-18 12:03:29.320093000 -0700 | |||||
+++ src/in_sysctl.c 2017-05-18 12:17:31.135080000 -0700 | |||||
@@ -232,7 +232,7 @@ sysctl_read(void) | |||||
snprintf(info_buf, sizeof(info_buf), "%ju", (uintmax_t)ifm->ifm_data.ifi_metric); | |||||
element_update_info(e, "Metric", info_buf); | |||||
-#ifndef __NetBSD__ | |||||
+#if !(defined(__NetBSD__) || defined(__FreeBSD__)) | |||||
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_recvquota); | |||||
element_update_info(e, "RX-Quota", info_buf); | |||||