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
|
compressor.stats.state_groups_changed
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if config.graphs {
|
||||||
|
graphing::make_graphs(&state_group_map, new_state_group_map);
|
||||||
|
}
|
||||||
|
|
||||||
if ratio > 1.0 {
|
if ratio > 1.0 {
|
||||||
println!("This compression would not remove any rows. Exiting.");
|
println!("This compression would not remove any rows. Exiting.");
|
||||||
return;
|
return;
|
||||||
@@ -382,10 +386,6 @@ pub fn run(mut config: Config) {
|
|||||||
new_state_group_map,
|
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.
|
/// Produce SQL code to carry out changes to database.
|
||||||
|
|||||||
Reference in New Issue
Block a user