fix typo and os info

This commit is contained in:
rustdesk
2023-07-22 19:21:12 +08:00
parent 07137ac566
commit c763478f66
2 changed files with 3 additions and 3 deletions

View File

@@ -761,8 +761,8 @@ pub fn get_sysinfo() -> serde_json::Value {
let cpu_freq = cpus.first().map(|x| x.frequency()).unwrap_or_default();
let num_cpus = num_cpus::get();
let num_pcpus = num_cpus::get_physical();
let os = system.name().unwrap_or(system.distribution_id());
let os = format!("{} {}", os, system.os_version().unwrap_or_default());
let os = system.distribution_id();
let os = format!("{} / {}", os, system.long_os_version().unwrap_or_default());
let hostname = system.host_name();
serde_json::json!({
"cpu": format!("{cpu_name}, {cpu_freq}MHz, {num_cpus}/{num_pcpus} cores"),