Skip to content

Commit

Permalink
That was a BAD idea. Revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
thebracket committed Oct 25, 2024
1 parent c74dcb5 commit 96a26b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/lqosd/src/throughput_tracker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ fn throughput_task(
THROUGHPUT_TRACKER.apply_queue_stats(&mut net_json_calc, &mut raw_data);

// Raw Data cleanup time
if let Ok(boot_time) = time_since_boot() {
/*if let Ok(boot_time) = time_since_boot() {
let time_since_boot = Duration::from(boot_time);
let five_minutes_ago = time_since_boot.saturating_sub(Duration::from_secs(300));
let five_minutes_ago_nanoseconds = five_minutes_ago.as_nanos();
raw_data.retain(|_k, v| v.last_seen > 0 && (v.last_seen as u128) < five_minutes_ago_nanoseconds);
}
}*/

std::mem::drop(raw_data);
timer_metrics.apply_queue_stats = timer_metrics.start.elapsed().as_secs_f64();
Expand Down

0 comments on commit 96a26b1

Please sign in to comment.