[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37314 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37314 - gnunet/src/ats |
Date: |
Tue, 21 Jun 2016 00:21:15 +0200 |
Author: grothoff
Date: 2016-06-21 00:21:15 +0200 (Tue, 21 Jun 2016)
New Revision: 37314
Modified:
gnunet/src/ats/perf_ats_solver.c
Log:
-indentation fixes
Modified: gnunet/src/ats/perf_ats_solver.c
===================================================================
--- gnunet/src/ats/perf_ats_solver.c 2016-06-20 22:16:25 UTC (rev 37313)
+++ gnunet/src/ats/perf_ats_solver.c 2016-06-20 22:21:15 UTC (rev 37314)
@@ -1315,7 +1315,8 @@
{
ph.env.out_quota[c] = quotas_out[c];
ph.env.in_quota[c] = quotas_in[c];
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Loading network quotas: `%s' %llu
%llu \n",
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Loading network quotas: `%s' %llu %llu \n",
GNUNET_ATS_print_network_type (c),
ph.env.out_quota[c],
ph.env.in_quota[c]);
@@ -1323,12 +1324,17 @@
GAS_normalization_start ();
GAS_preference_init ();
- GNUNET_asprintf (&plugin, "libgnunet_plugin_ats_%s", ph.ats_string);
- GNUNET_log(GNUNET_ERROR_TYPE_INFO, _("Initializing solver `%s'\n"),
ph.ats_string);
+ GNUNET_asprintf (&plugin,
+ "libgnunet_plugin_ats_%s",
+ ph.ats_string);
+ GNUNET_log(GNUNET_ERROR_TYPE_INFO,
+ _("Initializing solver `%s'\n"),
+ ph.ats_string);
if (NULL == (ph.sf = GNUNET_PLUGIN_load (plugin, &ph.env)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Failed to initialize solver `%s'!\n"), plugin);
+ _("Failed to initialize solver `%s'!\n"),
+ plugin);
ret = 1;
return;
}
@@ -1336,16 +1342,24 @@
/* Do the benchmark */
for (ph.current_iteration = 1; ph.current_iteration <= ph.total_iterations;
ph.current_iteration++)
{
- fprintf (stderr, "Iteration %u of %u starting\n", ph.current_iteration,
ph.total_iterations);
+ fprintf (stderr,
+ "Iteration %u of %u starting\n",
+ ph.current_iteration,
+ ph.total_iterations);
perf_run_iteration ();
evaluate (ph.current_iteration);
- fprintf (stderr, "Iteration %u of %u done\n", ph.current_iteration,
ph.total_iterations);
+ fprintf (stderr,
+ "Iteration %u of %u done\n",
+ ph.current_iteration,
+ ph.total_iterations);
}
if (ph.create_datafile)
write_all_iterations ();
/* Unload solver*/
- GNUNET_log(GNUNET_ERROR_TYPE_INFO, _("Unloading solver `%s'\n"),
ph.ats_string);
+ GNUNET_log(GNUNET_ERROR_TYPE_INFO,
+ _("Unloading solver `%s'\n"),
+ ph.ats_string);
GNUNET_PLUGIN_unload (plugin, ph.sf);
ph.sf = NULL;
GNUNET_free (plugin);
@@ -1369,6 +1383,7 @@
GNUNET_STATISTICS_destroy (ph.stat, GNUNET_NO);
}
+
/**
* Main function of the benchmark
*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37314 - gnunet/src/ats,
gnunet <=