Missing assignment for last commit
authorAaron Marcher <me@drkhsh.at>
Sat, 19 May 2018 11:12:06 +0000 (13:12 +0200)
committerAaron Marcher <me@drkhsh.at>
Sat, 19 May 2018 11:12:06 +0000 (13:12 +0200)
components/netspeeds.c

index cd47daec4b2aec112808fd78bb13732d4579f313..5af5a9476acd5dfa930947a8ece51c7ef3e83f65 100644 (file)
@@ -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)) {