Switch NetworkIO Meter to using uint32_t and uint64_t

From review via @BenBE, this is now a whole lot cleaner.
This commit is contained in:
Nathan Scott
2021-03-02 12:14:44 +11:00
parent 2d1839289e
commit 88a11859a0
3 changed files with 26 additions and 27 deletions

View File

@ -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;