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
|
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
|
||||||
}
|
}
|
||||||
@@ -54,6 +54,5 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
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