Skip to content

Commit 3404bc4

Browse files
committed
update disk type
1 parent 93c02d0 commit 3404bc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

route/v1/disk.go

+3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ func GetDiskList(c *gin.Context) {
9393
} else {
9494
disk.DiskType = "SSD"
9595
}
96+
if currentDisk.Tran == "usb" {
97+
disk.DiskType = "USB"
98+
}
9699

97100
temp := service.MyService.Disk().SmartCTL(currentDisk.Path)
98101
disk.Temperature = temp.Temperature.Current

0 commit comments

Comments
 (0)