From 50c7892809ef0abbc48028e77b330cb9f0eec439 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Tue, 4 Aug 2020 23:10:07 -0400 Subject: [PATCH] reduce frequency of status update log message from 60s to 300s --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 04e0b10..33cfadd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;