From a37224bf7b7eed62ff7574cc667202e905fc0d43 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 19 May 2018 13:12:06 +0200 Subject: Missing assignment for last commit --- components/netspeeds.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components') diff --git a/components/netspeeds.c b/components/netspeeds.c index cd47dae..5af5a94 100644 --- a/components/netspeeds.c +++ b/components/netspeeds.c @@ -67,6 +67,7 @@ warn("getifaddrs failed"); return NULL; } + oldrxbytes = rxbytes; for (ifa = ifal; ifa; ifa = ifa->ifa_next) { if (!strcmp(ifa->ifa_name, interface) && (ifd = (struct if_data *)ifa->ifa_data)) { @@ -97,6 +98,7 @@ warn("getifaddrs failed"); return NULL; } + oldtxbytes = txbytes; for (ifa = ifal; ifa; ifa = ifa->ifa_next) { if (!strcmp(ifa->ifa_name, interface) && (ifd = (struct if_data *)ifa->ifa_data)) { -- cgit v1.2.3