mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +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) {
|
||||
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
|
||||
filename = common.HostProc("self/mounts")
|
||||
lines, err = common.ReadLines(filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user