Skip to content

Commit

Permalink
less random heartbeat send intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowtip committed Jul 19, 2024
1 parent 068bef8 commit d528bde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src-tauri/lib/codegen/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ pub fn generate_scheduler(
));
}

let heartbeat_interval = 100 + rand::thread_rng().gen_range(0..100);

let num_fragmentation_jobs = node_config
.object_entries()
.iter()
Expand Down Expand Up @@ -305,7 +303,7 @@ static void schedule_get_resp_fragmentation_job(uint32_t *fragmentation_buffer,
}}
static job_t heartbeat_job;
static const uint32_t heartbeat_interval = {heartbeat_interval};
static const uint32_t heartbeat_interval = 100 + 3 * canzero_NODE_ID;
static void schedule_heartbeat_job() {{
{indent}heartbeat_job.climax = canzero_get_time();
{indent}heartbeat_job.tag = HEARTBEAT_JOB_TAG;
Expand Down
Binary file modified src-tauri/xcompl/canzero-cli-armv7-unknown-linux-gnueabihf
Binary file not shown.

0 comments on commit d528bde

Please sign in to comment.