Skip to content

Commit

Permalink
update disk type
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Oct 8, 2023
1 parent 93c02d0 commit 3404bc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions route/v1/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func GetDiskList(c *gin.Context) {
} else {
disk.DiskType = "SSD"
}
if currentDisk.Tran == "usb" {
disk.DiskType = "USB"
}

temp := service.MyService.Disk().SmartCTL(currentDisk.Path)
disk.Temperature = temp.Temperature.Current
Expand Down

0 comments on commit 3404bc4

Please sign in to comment.