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

Merge pull request #1356 from N1neSun/patch-1

fix some kylin linux bug
This commit is contained in:
shirou 2023-02-12 16:46:43 +09:00 committed by GitHub
commit e563e6394e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,6 +207,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"