add debian to the list of supportted OS-Id to add dietpi
This commit is contained in:
3
main.go
3
main.go
@@ -36,7 +36,7 @@ func isSupported() bool {
|
|||||||
return true
|
return true
|
||||||
case "linux":
|
case "linux":
|
||||||
id := linuxID()
|
id := linuxID()
|
||||||
return id == "ubuntu" || id == "arch"
|
return id == "ubuntu" || id == "debian" || id == "arch"
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -56,4 +56,3 @@ func main() {
|
|||||||
}
|
}
|
||||||
fmt.Printf("CPU %.0f%% | RAM %.0f%% ", values[0], vm.UsedPercent)
|
fmt.Printf("CPU %.0f%% | RAM %.0f%% ", values[0], vm.UsedPercent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user