diff --git a/src/lib.rs b/src/lib.rs index 33b9366..7107ed1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -349,6 +349,10 @@ pub fn run(mut config: Config) { compressor.stats.state_groups_changed ); + if config.graphs { + graphing::make_graphs(&state_group_map, new_state_group_map); + } + if ratio > 1.0 { println!("This compression would not remove any rows. Exiting."); return; @@ -382,10 +386,6 @@ pub fn run(mut config: Config) { new_state_group_map, ); } - - if config.graphs { - graphing::make_graphs(&state_group_map, new_state_group_map); - } } /// Produce SQL code to carry out changes to database.