add some \t
This commit is contained in:
parent
017449a58b
commit
621756115e
2
main.go
2
main.go
@ -42,7 +42,7 @@ func main() {
|
||||
}
|
||||
|
||||
disks := getDisks()
|
||||
fmt.Printf("Running smart check on all %d disks.\n", len(disks.Blockdevices))
|
||||
fmt.Printf("Running smart check on %d disks.\n", len(disks.Blockdevices))
|
||||
for _, blockdevice := range disks.Blockdevices {
|
||||
path := fmt.Sprintf("/dev/%s", blockdevice.Name)
|
||||
info := getDiskInfo(path)
|
||||
|
@ -75,9 +75,9 @@ func checkSmartAttributes(diskpath string, isSeagate bool, isHdd bool) {
|
||||
// error count| operation count
|
||||
rrerrrate = rrerrrate >> 32
|
||||
}
|
||||
fmt.Println("Seek_Error_Rate: " + evalStrZero(rrerrrate))
|
||||
fmt.Println("Spin_Retry_Count: " + evalStrZero(getItemValue(rawattr.AtaSmartAttr.Table, "Spin_Retry_Count")))
|
||||
fmt.Println("Spin_Up_Time: " + evalStrZero(getItemValue(rawattr.AtaSmartAttr.Table, "Spin_Up_Time")))
|
||||
fmt.Println("Seek_Error_Rate:\t" + evalStrZero(rrerrrate))
|
||||
fmt.Println("Spin_Retry_Count:\t" + evalStrZero(getItemValue(rawattr.AtaSmartAttr.Table, "Spin_Retry_Count")))
|
||||
fmt.Println("Spin_Up_Time:\t\t" + evalStrZero(getItemValue(rawattr.AtaSmartAttr.Table, "Spin_Up_Time")))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user