Skip to content

Commit 628216e

Browse files
committed
Address PR comments
1 parent 9bc60e9 commit 628216e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stress/src/throughput.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ where
7070

7171
let handle_main_thread = thread::spawn(move || {
7272
let mut last_collect_time = Instant::now();
73-
let mut current_time: Instant;
7473
let mut total_count_old: u64 = 0;
7574

7675
#[cfg(feature = "stats")]
@@ -79,7 +78,7 @@ where
7978
let mut system = System::new_all();
8079

8180
loop {
82-
current_time = Instant::now();
81+
let current_time = Instant::now();
8382
let elapsed = current_time.duration_since(last_collect_time).as_secs();
8483
if elapsed >= SLIDING_WINDOW_SIZE {
8584
let total_count_u64: u64 = worker_stats_shared_monitor

0 commit comments

Comments
 (0)