- freebsd doesn't have log2
authorBart Polot <bart@net.in.tum.de>
Mon, 1 Jul 2013 13:05:38 +0000 (13:05 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 1 Jul 2013 13:05:38 +0000 (13:05 +0000)
src/regex/gnunet-regex-profiler.c

index cb257df4984ea16d8b7b171327a9ecb74ebcaf7a..75f3d96a1c1319bee9cad46d3b9a311c99130ed3 100644 (file)
@@ -1395,7 +1395,8 @@ run (void *cls, char *const *args, const char *cfgfile,
                                          num_peers * 20);
   GNUNET_CONFIGURATION_set_value_number (cfg,
                                          "DHT", "FORCE_NSE",
-                                         (long long unsigned) log2 (num_peers));
+                                         (long long unsigned)
+                                         (log (num_peers) / log (2.0)));
   event_mask = 0LL;
 /* For feedback about the start process activate these and pass master_cb */
   event_mask |= (1LL << GNUNET_TESTBED_ET_PEER_START);