Skip to content

Commit

Permalink
Fix: crm_simulate: Correctly invoke the policy engine library
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Jun 3, 2015
1 parent 0b4f1ec commit 4893ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/crm_simulate.c
Expand Up @@ -788,12 +788,13 @@ main(int argc, char **argv)
goto done;
}

cleanup_alloc_calculations(&data_set);
cleanup_calculations(&data_set);
data_set.now = get_date();
data_set.input = input;
if(xml_file) {
set_bit(data_set.flags, pe_flag_sanitized);
}
cluster_status(&data_set);
}

if (input_file != NULL) {
Expand All @@ -816,7 +817,6 @@ main(int argc, char **argv)
printf("Utilization information:\n");
}

cluster_status(&data_set);
do_calculations(&data_set, input, local_date);
input = NULL; /* Don't try and free it twice */

Expand Down

0 comments on commit 4893ed2

Please sign in to comment.