From f3b2a8a995d9f5d74887ecbda76c339a84e6acbe Mon Sep 17 00:00:00 2001 From: fiercex Date: Wed, 24 Jul 2024 10:17:22 +0800 Subject: [PATCH] add freebsd --- server/src/stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/stats.rs b/server/src/stats.rs index 16415c39..9e34de39 100644 --- a/server/src/stats.rs +++ b/server/src/stats.rs @@ -262,7 +262,7 @@ impl StatsMgr { ]; if !o.labels.contains("os=") { if let Some(sys_info) = &o.sys_info { - let os_r = sys_info.os_release.to_lowercase(); + let os_r = format!("{} {}",sys_info.os_release.to_lowercase(),sys_info.os_name.to_lowercase()); for s in OS_LIST.iter() { if os_r.contains(s) { if o.labels.is_empty() {