projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3ccac3
)
Missing assignment for last commit
author
Aaron Marcher
<me@drkhsh.at>
Sat, 19 May 2018 11:12:06 +0000
(13:12 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sat, 19 May 2018 11:12:06 +0000
(13:12 +0200)
components/netspeeds.c
patch
|
blob
|
history
diff --git
a/components/netspeeds.c
b/components/netspeeds.c
index cd47daec4b2aec112808fd78bb13732d4579f313..5af5a9476acd5dfa930947a8ece51c7ef3e83f65 100644
(file)
--- 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)) {