mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-16 19:30:43 +00:00
Fix after upgrading sysinfo
This commit is contained in:
@ -27,8 +27,7 @@ impl Environment {
|
||||
|
||||
let unknown_string = String::from("Unknown");
|
||||
let mut system = System::new();
|
||||
system.refresh_cpu();
|
||||
system.refresh_cpu_frequency();
|
||||
system.refresh_cpu_all();
|
||||
system.refresh_memory();
|
||||
|
||||
let (cpu, frequency) = match system.cpus().first() {
|
||||
@ -50,9 +49,7 @@ impl Environment {
|
||||
if let Some(os) = System::os_version() {
|
||||
software.push(VersionInfo { name: os, version: String::from("kernel-release") });
|
||||
}
|
||||
if let Some(arch) = System::cpu_arch() {
|
||||
software.push(VersionInfo { name: arch, version: String::from("arch") });
|
||||
}
|
||||
software.push(VersionInfo { name: System::cpu_arch(), version: String::from("arch") });
|
||||
|
||||
Self {
|
||||
hostname: System::host_name(),
|
||||
|
Reference in New Issue
Block a user