Skip to content

Commit

Permalink
new net-stats require a new table (backport #21996) (#21999)
Browse files Browse the repository at this point in the history
* new net-stats require a new table (#21996)

(cherry picked from commit 3fe942a)

# Conflicts:
#	core/src/system_monitor_service.rs

* merge

Co-authored-by: Jeff Biseda <[email protected]>
  • Loading branch information
mergify[bot] and jbiseda authored Dec 18, 2021
1 parent 33cd3a1 commit ddef156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/system_monitor_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{
#[cfg(target_os = "linux")]
use std::{fs::File, io::BufReader, path::Path};

const SAMPLE_INTERVAL: Duration = Duration::from_secs(60);
const SAMPLE_INTERVAL: Duration = Duration::from_secs(2);
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);

#[cfg(target_os = "linux")]
Expand Down Expand Up @@ -125,7 +125,7 @@ impl SystemMonitorService {
#[cfg(target_os = "linux")]
fn report_udp_stats(old_stats: &UdpStats, new_stats: &UdpStats) {
datapoint_info!(
"net-stats",
"net-stats-validator",
(
"in_datagrams_delta",
new_stats.in_datagrams - old_stats.in_datagrams,
Expand Down

0 comments on commit ddef156

Please sign in to comment.