X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d1a8de6d608e6a2dbfc60cf4e453832421a2fd4c..b024b9e443552c94609fc56a240cdb199a329853:/examples/s4u/dht-chord/s4u-dht-chord.hpp diff --git a/examples/s4u/dht-chord/s4u-dht-chord.hpp b/examples/s4u/dht-chord/s4u-dht-chord.hpp index 1bedad77c9..0ca638a9e9 100644 --- a/examples/s4u/dht-chord/s4u-dht-chord.hpp +++ b/examples/s4u/dht-chord/s4u-dht-chord.hpp @@ -10,12 +10,12 @@ #include #include -#define MAX_SIMULATION_TIME 1000 -#define PERIODIC_STABILIZE_DELAY 20 -#define PERIODIC_FIX_FINGERS_DELAY 120 -#define PERIODIC_CHECK_PREDECESSOR_DELAY 120 -#define PERIODIC_LOOKUP_DELAY 10 -#define SLEEP_DELAY 4.9999 +constexpr double MAX_SIMULATION_TIME = 1000; +constexpr double PERIODIC_STABILIZE_DELAY = 20; +constexpr double PERIODIC_FIX_FINGERS_DELAY = 120; +constexpr double PERIODIC_CHECK_PREDECESSOR_DELAY = 120; +constexpr double PERIODIC_LOOKUP_DELAY = 10; +constexpr double SLEEP_DELAY = 4.9999; extern int nb_bits; extern int nb_keys;