Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and dependabot[bot] committed Jan 20, 2023
1 parent a487326 commit 722d47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relays/utils/src/metrics/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl StandaloneMetric for GlobalMetrics {
async fn update(&self) {
// update system-wide metrics
let mut system = self.system.lock().await;
let load = system.get_load_average();
let load = system.load_average();
self.system_average_load.with_label_values(&["1min"]).set(load.one);
self.system_average_load.with_label_values(&["5min"]).set(load.five);
self.system_average_load.with_label_values(&["15min"]).set(load.fifteen);
Expand All @@ -85,7 +85,7 @@ impl StandaloneMetric for GlobalMetrics {
qed",
);
let is_process_refreshed = system.refresh_process(pid);
match (is_process_refreshed, system.get_process(pid)) {
match (is_process_refreshed, system.process(pid)) {
(true, Some(process_info)) => {
let cpu_usage = process_info.cpu_usage() as f64;
let memory_usage = process_info.memory() * 1024;
Expand Down

0 comments on commit 722d47b

Please sign in to comment.