Skip to content

Commit

Permalink
refactor: 缩短进化间隔
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Oct 30, 2024
1 parent 04f614c commit a768bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/scheduler/looper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl EvolutionState {
config: &mut Config,
mode: Mode,
) {
if unlikely(self.mutate_timer.elapsed() > Duration::from_secs(1)) {
if unlikely(self.mutate_timer.elapsed() > Duration::from_millis(100)) {
self.mutate_timer = Instant::now();

if let Some(fitness) = evaluate_fitness(buffer, cpu_temp_watcher, config, mode) {
Expand Down

0 comments on commit a768bfe

Please sign in to comment.