read /proc/net files with a single read syscall (#1380)
Signed-off-by: Hanaasagi <ambiguous404@gmail.com>
This commit is contained in:
parent
3d504bc5cb
commit
777b751f90
2 changed files with 11 additions and 13 deletions
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue