Quellcode durchsuchen

Fixed debug print

Toby Chui vor 1 Monat
Ursprung
Commit
4e08e1a41b
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      main.go

+ 1 - 2
main.go

@@ -24,7 +24,6 @@ func main() {
 		}
 
 		fullPath := "/dev/" + deviceFile.Name()
-		fmt.Println(fullPath)
 		if !smart.IsRootDisk(fullPath) {
 			continue
 		}
@@ -33,7 +32,7 @@ func main() {
 			fmt.Println("Unsupported disk type")
 			continue
 		}
-
+		fmt.Println(fullPath)
 		//Get the SMART data printout in json
 		smartdata, err := smart.GetSMARTData(fullPath)
 		if err != nil {