Move the graph generation to before abort (#56)

This commit is contained in:
Azrenbeth
2021-09-13 13:23:48 +01:00
committed by GitHub
parent 4c3d6bd346
commit a951ba4dae

View File

@@ -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.