Sfoglia il codice sorgente

Missing assignment for last commit

Aaron Marcher 7 anni fa
parent
commit
a37224bf7b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      components/netspeeds.c

+ 2 - 0
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)) {