From 49cc8cee869f82a731e5ef43217954d5cd269219 Mon Sep 17 00:00:00 2001 From: Chirag Kumar Date: Mon, 21 Oct 2024 20:57:26 +0000 Subject: [PATCH] typo --- examples/time-varying-infection/periodic_report.rs | 6 +++--- examples/time-varying-infection/population_loader.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/time-varying-infection/periodic_report.rs b/examples/time-varying-infection/periodic_report.rs index 9d8c3fb..a843166 100644 --- a/examples/time-varying-infection/periodic_report.rs +++ b/examples/time-varying-infection/periodic_report.rs @@ -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() { @@ -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); }); } diff --git a/examples/time-varying-infection/population_loader.rs b/examples/time-varying-infection/population_loader.rs index 7ec55b0..31144bc 100644 --- a/examples/time-varying-infection/population_loader.rs +++ b/examples/time-varying-infection/population_loader.rs @@ -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(), };