diff options
author | Nathan Scott <nathans@redhat.com> | 2021-03-02 12:14:44 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-03-02 12:14:44 +1100 |
commit | 88a11859a0a26de3683f8459611c11ab6b2efb36 (patch) | |
tree | c22ed24ae300b12a83bf55f70be92cec478ca627 /freebsd | |
parent | 2d1839289eca016893b898dc713cbf1a1df92fc1 (diff) |
Switch NetworkIO Meter to using uint32_t and uint64_t
From review via @BenBE, this is now a whole lot cleaner.
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/Platform.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c index a4fe2354..74007472 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -321,8 +321,7 @@ bool Platform_getNetworkIO(NetworkIOData* data) { size_t countLen = sizeof(count); const int countMib[] = { CTL_NET, PF_LINK, NETLINK_GENERIC, IFMIB_SYSTEM, IFMIB_IFCOUNT }; - int r; - r = sysctl(countMib, ARRAYSIZE(countMib), &count, &countLen, NULL, 0); + int r = sysctl(countMib, ARRAYSIZE(countMib), &count, &countLen, NULL, 0); if (r < 0) return false; |