add debian to the list of supportted OS-Id to add dietpi
This commit is contained in:
5
main.go
5
main.go
@@ -36,7 +36,7 @@ func isSupported() bool {
|
||||
return true
|
||||
case "linux":
|
||||
id := linuxID()
|
||||
return id == "ubuntu" || id == "arch"
|
||||
return id == "ubuntu" || id == "debian" || id == "arch"
|
||||
default:
|
||||
return false
|
||||
}
|
||||
@@ -54,6 +54,5 @@ func main() {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
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