Update Rust crate sysinfo to 0.31.0 #153

Merged
pierre merged 2 commits from renovate/sysinfo-0.x into master 2024-09-09 09:44:43 +00:00
Showing only changes of commit 3777eda329 - Show all commits

View File

@ -171,7 +171,7 @@ pub async fn network_hook_status() -> HttpResult {
pub async fn number_vcpus() -> HttpResult {
let mut system = System::new();
system.refresh_cpu();
system.refresh_cpu_all();
let number_cpus = system.cpus().len();
assert_ne!(number_cpus, 0, "Got invlid number of CPU!");