File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,13 @@ func (fs FS) NetUDP6() (NetUDP, error) {
38
38
// NetUDPSummary returns already computed statistics like the total queue lengths
39
39
// for UDP datagrams read from /proc/net/udp.
40
40
func (fs FS ) NetUDPSummary () (* NetUDPSummary , error ) {
41
- n , err := newNetUDPSummary (fs .proc .Path ("net/udp" ))
42
- n1 := NetUDPSummary (* n )
43
- return & n1 , err
41
+ return newNetUDPSummary (fs .proc .Path ("net/udp" ))
44
42
}
45
43
46
44
// NetUDP6Summary returns already computed statistics like the total queue lengths
47
45
// for UDP datagrams read from /proc/net/udp6.
48
46
func (fs FS ) NetUDP6Summary () (* NetUDPSummary , error ) {
49
- n , err := newNetUDPSummary (fs .proc .Path ("net/udp6" ))
50
- n1 := NetUDPSummary (* n )
51
- return & n1 , err
47
+ return newNetUDPSummary (fs .proc .Path ("net/udp6" ))
52
48
}
53
49
54
50
// newNetUDP creates a new NetUDP{,6} from the contents of the given file.
You can’t perform that action at this time.
0 commit comments