diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-05-19 13:12:06 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-19 13:12:06 +0200 |
commit | a37224bf7b7eed62ff7574cc667202e905fc0d43 (patch) | |
tree | e2421b7ecb8b425eb905945baf3a040be1192047 /components/netspeeds.c | |
parent | e3ccac3298f8d5d15fc63679aaed9646dd82919e (diff) |
Missing assignment for last commit
Diffstat (limited to 'components/netspeeds.c')
-rw-r--r-- | components/netspeeds.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |