mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
sync cpu time
This commit is contained in:
parent
61261ca227
commit
ad5ae35ecf
4 changed files with 31 additions and 7 deletions
|
|
@ -11,12 +11,12 @@ use std::collections::HashSet;
|
|||
use std::fmt::Write;
|
||||
|
||||
pub async fn get_metrics() -> Result<String> {
|
||||
let (cpu, network, disks, disk_usage) = try_join! {
|
||||
cpu_time(),
|
||||
let (network, disks, disk_usage) = try_join! {
|
||||
network_stats(),
|
||||
disk_stats(),
|
||||
disk_usage(),
|
||||
}?;
|
||||
let cpu = cpu_time()?;
|
||||
let hostname = hostname()?;
|
||||
let memory = memory()?;
|
||||
let temperatures = temperatures()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue