Added log on deleting tgraph_source data in pandora_db

This commit is contained in:
Luis Calvo 2020-12-14 10:52:12 +01:00
parent f2eee8fde8
commit c4eb3dd088
1 changed files with 2 additions and 0 deletions

View File

@ -404,8 +404,10 @@ sub pandora_purgedb ($$) {
}
# Delete old tgraph_source data
log_message ('PURGE', 'Deleting old tgraph_source data.');
db_do ($dbh,"DELETE FROM tgraph_source WHERE id_graph NOT IN (SELECT id_graph FROM tgraph)");
# Delete network traffic old data.
log_message ('PURGE', 'Deleting old network matrix data.');
if ($conf->{'_delete_old_network_matrix'} > 0) {