Move the graph generation to before abort (#56)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user