don't sync if not printing stats
@@ -674,6 +674,7 @@ fn main() {
let one_second = time::Duration::from_secs(1);
thread::sleep(one_second);
+ if configuration.print_stats {
// @TODO: adjust this to run each time we display statistics
if timer_expired(statistics_counter, 60) {
for (index, send_to_client) in client_channels.iter().enumerate() {
@@ -683,6 +684,7 @@ fn main() {
statistics_counter = time::Instant::now();
}
}
+ }
if configuration.print_stats {
display_stats(&configuration, &goose_task_sets, run_time);
