Commit 24cd6f26 authored by Mike Frysinger's avatar Mike Frysinger

Revert "fix statistics with aliased interfaces"

This reverts commit 343192d1.

This fix from RedHat was actually a fix for one of their custom patches.
Applying it to mainline breaks interface stats.
parent 4e499e29
......@@ -364,10 +364,9 @@ static int if_readlist_proc(const char *target)
s = get_name(name, buf);
ife = if_cache_add(name);
get_dev_fields(s, ife);
if (target && !strcmp(target,name)) {
ife->statistics_valid = 1;
ife->statistics_valid = 1;
if (target && !strcmp(target,name))
break;
}
}
if (ferror(fh)) {
perror(_PATH_PROCNET_DEV);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment