diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-20 22:21:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-20 22:21:15 +0000 |
commit | 801dd2f76471f55616f9c5d22dc78bd82c654684 (patch) | |
tree | 7b3e926e833b332573307b91ce2362d0c42b8fca /src/ats | |
parent | f6f1b9fb73dc4c7f03c70b80b94cfb2a6ce81e65 (diff) | |
download | gnunet-801dd2f76471f55616f9c5d22dc78bd82c654684.tar.gz gnunet-801dd2f76471f55616f9c5d22dc78bd82c654684.zip |
-indentation fixes
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/perf_ats_solver.c | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c index 9c15c802e..f05668e9b 100644 --- a/src/ats/perf_ats_solver.c +++ b/src/ats/perf_ats_solver.c | |||
@@ -1315,7 +1315,8 @@ run (void *cls, char * const *args, const char *cfgfile, | |||
1315 | { | 1315 | { |
1316 | ph.env.out_quota[c] = quotas_out[c]; | 1316 | ph.env.out_quota[c] = quotas_out[c]; |
1317 | ph.env.in_quota[c] = quotas_in[c]; | 1317 | ph.env.in_quota[c] = quotas_in[c]; |
1318 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Loading network quotas: `%s' %llu %llu \n", | 1318 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1319 | "Loading network quotas: `%s' %llu %llu \n", | ||
1319 | GNUNET_ATS_print_network_type (c), | 1320 | GNUNET_ATS_print_network_type (c), |
1320 | ph.env.out_quota[c], | 1321 | ph.env.out_quota[c], |
1321 | ph.env.in_quota[c]); | 1322 | ph.env.in_quota[c]); |
@@ -1323,12 +1324,17 @@ run (void *cls, char * const *args, const char *cfgfile, | |||
1323 | GAS_normalization_start (); | 1324 | GAS_normalization_start (); |
1324 | GAS_preference_init (); | 1325 | GAS_preference_init (); |
1325 | 1326 | ||
1326 | GNUNET_asprintf (&plugin, "libgnunet_plugin_ats_%s", ph.ats_string); | 1327 | GNUNET_asprintf (&plugin, |
1327 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, _("Initializing solver `%s'\n"), ph.ats_string); | 1328 | "libgnunet_plugin_ats_%s", |
1329 | ph.ats_string); | ||
1330 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | ||
1331 | _("Initializing solver `%s'\n"), | ||
1332 | ph.ats_string); | ||
1328 | if (NULL == (ph.sf = GNUNET_PLUGIN_load (plugin, &ph.env))) | 1333 | if (NULL == (ph.sf = GNUNET_PLUGIN_load (plugin, &ph.env))) |
1329 | { | 1334 | { |
1330 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1335 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1331 | _("Failed to initialize solver `%s'!\n"), plugin); | 1336 | _("Failed to initialize solver `%s'!\n"), |
1337 | plugin); | ||
1332 | ret = 1; | 1338 | ret = 1; |
1333 | return; | 1339 | return; |
1334 | } | 1340 | } |
@@ -1336,16 +1342,24 @@ run (void *cls, char * const *args, const char *cfgfile, | |||
1336 | /* Do the benchmark */ | 1342 | /* Do the benchmark */ |
1337 | for (ph.current_iteration = 1; ph.current_iteration <= ph.total_iterations; ph.current_iteration++) | 1343 | for (ph.current_iteration = 1; ph.current_iteration <= ph.total_iterations; ph.current_iteration++) |
1338 | { | 1344 | { |
1339 | fprintf (stderr, "Iteration %u of %u starting\n", ph.current_iteration, ph.total_iterations); | 1345 | fprintf (stderr, |
1346 | "Iteration %u of %u starting\n", | ||
1347 | ph.current_iteration, | ||
1348 | ph.total_iterations); | ||
1340 | perf_run_iteration (); | 1349 | perf_run_iteration (); |
1341 | evaluate (ph.current_iteration); | 1350 | evaluate (ph.current_iteration); |
1342 | fprintf (stderr, "Iteration %u of %u done\n", ph.current_iteration, ph.total_iterations); | 1351 | fprintf (stderr, |
1352 | "Iteration %u of %u done\n", | ||
1353 | ph.current_iteration, | ||
1354 | ph.total_iterations); | ||
1343 | } | 1355 | } |
1344 | if (ph.create_datafile) | 1356 | if (ph.create_datafile) |
1345 | write_all_iterations (); | 1357 | write_all_iterations (); |
1346 | 1358 | ||
1347 | /* Unload solver*/ | 1359 | /* Unload solver*/ |
1348 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, _("Unloading solver `%s'\n"), ph.ats_string); | 1360 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
1361 | _("Unloading solver `%s'\n"), | ||
1362 | ph.ats_string); | ||
1349 | GNUNET_PLUGIN_unload (plugin, ph.sf); | 1363 | GNUNET_PLUGIN_unload (plugin, ph.sf); |
1350 | ph.sf = NULL; | 1364 | ph.sf = NULL; |
1351 | GNUNET_free (plugin); | 1365 | GNUNET_free (plugin); |
@@ -1369,6 +1383,7 @@ run (void *cls, char * const *args, const char *cfgfile, | |||
1369 | GNUNET_STATISTICS_destroy (ph.stat, GNUNET_NO); | 1383 | GNUNET_STATISTICS_destroy (ph.stat, GNUNET_NO); |
1370 | } | 1384 | } |
1371 | 1385 | ||
1386 | |||
1372 | /** | 1387 | /** |
1373 | * Main function of the benchmark | 1388 | * Main function of the benchmark |
1374 | * | 1389 | * |