mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
[disk][linux] Fix comment in PartitionsWithContext
This commit is contained in:
parent
0d3a2ac515
commit
368a865910
@ -232,7 +232,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
|
|||||||
if err != err.(*os.PathError) {
|
if err != err.(*os.PathError) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
//if kernel not support self/mountinfo
|
// if kernel does not support self/mountinfo, fallback to self/mounts (<2.6.26)
|
||||||
useMounts = true
|
useMounts = true
|
||||||
filename = common.HostProc("self/mounts")
|
filename = common.HostProc("self/mounts")
|
||||||
lines, err = common.ReadLines(filename)
|
lines, err = common.ReadLines(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user