1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

fix some kylin linux bug

This commit is contained in:
N1neSun 2022-09-23 16:23:47 +08:00
parent 434cc29594
commit add9158d4e

View File

@ -205,6 +205,9 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
} else if lsb.ID == "LinuxMint" {
platform = "linuxmint"
version = lsb.Release
} else if lsb.ID == "Kylin" {
platform = "Kylin"
version = lsb.Release
} else {
if common.PathExistsWithContents("/usr/bin/raspi-config") {
platform = "raspbian"