Browse Source

reduce frequency of status update log message from 60s to 300s

master
Jonathan Strong 4 years ago
parent
commit
50c7892809
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lib.rs

+ 1
- 1
src/lib.rs View File

@@ -583,7 +583,7 @@ impl InfluxWriter {
loop_time = Instant::now();
active = false;

if loop_time - last_memory_check > Duration::from_secs(60) {
if loop_time - last_memory_check > Duration::from_secs(300) {
let allocated_bytes = count_allocated_memory(&spares, &backlog, &in_flight_buffer_bytes);
let allocated_mb = allocated_bytes as f64 / 1024.0 / 1024.0;
info!(logger, "allocated memory: {:.1}MB", allocated_mb;


Loading…
Cancel
Save