Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiragKumar9 committed Oct 21, 2024
1 parent 4eb25c4 commit 49cc8ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/time-varying-infection/periodic_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct PeriodicReportItem {

create_report_trait!(PeriodicReportItem);

fn count_people_and_send_report(context: &mut Context, plan_period: f64) {
fn count_people_and_send_report(context: &mut Context, report_period: f64) {
for disease_state in DiseaseStatus::iter() {
let mut counter = 0;
for usize_id in 0..context.get_current_population() {
Expand All @@ -44,8 +44,8 @@ fn count_people_and_send_report(context: &mut Context, plan_period: f64) {
count: counter,
});
}
context.add_plan(context.get_current_time() + plan_period, move |context| {
count_people_and_send_report(context, plan_period);
context.add_plan(context.get_current_time() + report_period, move |context| {
count_people_and_send_report(context, report_period);
});
}

Expand Down
2 changes: 1 addition & 1 deletion examples/time-varying-infection/population_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mod tests {
foi: 0.15,
foi_sin_shift: 3.0,
infection_duration: 5.0,
plan_period: 1.0,
report_period: 1.0,
output_dir: ".".to_string(),
output_file: ".".to_string(),
};
Expand Down

0 comments on commit 49cc8ce

Please sign in to comment.