Procházet zdrojové kódy

Added support for smartctl in arm64

Toby Chui před 3 roky
rodič
revize
c4fcc03fb6
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      mod/disk/smart/smart.go

+ 4 - 1
mod/disk/smart/smart.go

@@ -130,9 +130,12 @@ func getBinary() string {
 	if runtime.GOOS == "windows" {
 		return ".\\system\\disk\\smart\\win\\smartctl.exe"
 	} else if runtime.GOOS == "linux" {
-		if runtime.GOARCH == "arm" || runtime.GOARCH == "arm64" {
+		if runtime.GOARCH == "arm" {
 			return "./system/disk/smart/linux/smartctl_armv6"
 		}
+		if runtime.GOARCH == "arm64" {
+			return "./system/disk/smart/linux/smartctl_arm64"
+		}
 		if runtime.GOARCH == "386" || runtime.GOARCH == "amd64" {
 			return "./system/disk/smart/linux/smartctl_i386"
 		}