- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for parent_dep (0.08 sec)
-
internal/disk/stat_linux.go
// real device name (nvme0n1) to get its sysfs information parentDevPath, e := os.Readlink("/sys/class/block/" + devName) if e == nil { parentDev := filepath.Base(filepath.Dir(parentDevPath)) qst, err = bfs.SysBlockDeviceQueueStats(parentDev) } } if err == nil { info.NRRequests = qst.NRRequests rot := qst.Rotational == 1 // Rotational is '1' if the device is HDD
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 4.8K bytes - Viewed (0)