From 0e7ee03937baf60622238e4b1724f20cf311cce1 Mon Sep 17 00:00:00 2001 From: Lars Rademacher Date: Tue, 31 Dec 2013 14:54:11 +0100 Subject: [PATCH] compute-hops: bugfix rollback-threshold Rollback threshold was not set by command line argument. Change-Id: I68ba63cc5cd31e3af8408f83caec8b3d7bb10c78 --- tools/compute-hops/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compute-hops/main.cc b/tools/compute-hops/main.cc index e87d750f..aa2639c5 100644 --- a/tools/compute-hops/main.cc +++ b/tools/compute-hops/main.cc @@ -228,7 +228,7 @@ int main(int argc, char *argv[]) // if (strcmp(argv[9],"max")==0) { // g_rollback_thresh = (g_cp_thresh - g_cost_cp - 5)/2; // } - g_cost_cp = strtoul(cmd[CP_ROLLBACK_THRESH].first()->arg, NULL, 0); + g_rollback_thresh = strtoul(cmd[CP_ROLLBACK_THRESH].first()->arg, NULL, 0); } if (cmd[USE_CHECKPOINTS] && !(cmd[CHECKPOINT_OUTPUT_FILE].count() > 0)) {