read /proc/net files with a single read syscall (#1380)

Signed-off-by: Hanaasagi <ambiguous404@gmail.com>
This commit is contained in:
秋葉 2019-07-08 21:53:14 +08:00 committed by Ben Kochie
commit 777b751f90
2 changed files with 11 additions and 13 deletions

View file

@ -26,7 +26,7 @@ func Test_parseTCPStatsError(t *testing.T) {
}{
{
name: "too few fields",
in: "hello world",
in: "sl local_address\n 0: 00000000:0016",
},
}