Skip to content

Commit 76497ed

Browse files
committed
Handle NVMe devices behind bridges
Signed-off-by: Hoshino Lina <lina@lina.yt>
1 parent 5dccfd5 commit 76497ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smartctl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (smart *SMARTctl) Collect() {
102102
smart.mineDeviceERC()
103103
smart.mineSmartStatus()
104104

105-
if smart.device.interface_ == "nvme" {
105+
if smart.device.interface_ == "nvme" || smart.device.protocol == "NVMe" {
106106
smart.mineNvmePercentageUsed()
107107
smart.mineNvmeAvailableSpare()
108108
smart.mineNvmeAvailableSpareThreshold()

0 commit comments

Comments
 (0)