mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-12 19:29:30 +08:00
add arg to NetIOCounters but not implemented yet.
This commit is contained in:
parent
d8b87abfaf
commit
218eebabc8
@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NetIOCounters() ([]NetIOCountersStat, error) {
|
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
|
||||||
filename := "/proc/net/dev"
|
filename := "/proc/net/dev"
|
||||||
lines, err := readLines(filename)
|
lines, err := readLines(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user