aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-service-nse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r--src/nse/gnunet-service-nse.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index fe32dc30b..e31b07d14 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -1046,7 +1046,7 @@ handle_p2p_estimate (void *cls,
1046 1046
1047#if ENABLE_NSE_HISTOGRAM 1047#if ENABLE_NSE_HISTOGRAM
1048 peer_entry->received_messages++; 1048 peer_entry->received_messages++;
1049 if ((peer_entry->transmitted_messages > 0)&& 1049 if ((peer_entry->transmitted_messages > 0) &&
1050 (peer_entry->last_transmitted_size >= matching_bits) ) 1050 (peer_entry->last_transmitted_size >= matching_bits) )
1051 GNUNET_STATISTICS_update (stats, "# cross messages", 1, GNUNET_NO); 1051 GNUNET_STATISTICS_update (stats, "# cross messages", 1, GNUNET_NO);
1052#endif 1052#endif
@@ -1253,6 +1253,8 @@ flush_comp_cb (void *cls, size_t size)
1253 GNUNET_TESTBED_LOGGER_disconnect (lh); 1253 GNUNET_TESTBED_LOGGER_disconnect (lh);
1254 lh = NULL; 1254 lh = NULL;
1255} 1255}
1256
1257
1256#endif 1258#endif
1257 1259
1258 1260
@@ -1388,6 +1390,8 @@ status_cb (void *cls, int status)
1388 GNUNET_SCHEDULER_shutdown (); 1390 GNUNET_SCHEDULER_shutdown ();
1389 } 1391 }
1390} 1392}
1393
1394
1391#endif 1395#endif
1392 1396
1393 1397
@@ -1581,12 +1585,15 @@ GNUNET_SERVICE_MAIN ("nse",
1581/** 1585/**
1582 * MINIMIZE heap size (way below 128k) since this process doesn't need much. 1586 * MINIMIZE heap size (way below 128k) since this process doesn't need much.
1583 */ 1587 */
1584void __attribute__ ((constructor)) GNUNET_ARM_memory_init () 1588void __attribute__ ((constructor))
1589GNUNET_ARM_memory_init ()
1585{ 1590{
1586 mallopt (M_TRIM_THRESHOLD, 4 * 1024); 1591 mallopt (M_TRIM_THRESHOLD, 4 * 1024);
1587 mallopt (M_TOP_PAD, 1 * 1024); 1592 mallopt (M_TOP_PAD, 1 * 1024);
1588 malloc_trim (0); 1593 malloc_trim (0);
1589} 1594}
1595
1596
1590#endif 1597#endif
1591 1598
1592 1599