diff options
-rwxr-xr-x | src/ats/plugin_ats_ril.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index d5213899e..26d7b0c3a 100755 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c | |||
@@ -28,14 +28,14 @@ | |||
28 | 28 | ||
29 | #define LOG(kind,...) GNUNET_log_from (kind, "ats-ril",__VA_ARGS__) | 29 | #define LOG(kind,...) GNUNET_log_from (kind, "ats-ril",__VA_ARGS__) |
30 | 30 | ||
31 | #define RIL_MIN_BW ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__) | 31 | #define RIL_MIN_BW (1 * ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__)) |
32 | #define RIL_MAX_BW GNUNET_ATS_MaxBandwidth | 32 | #define RIL_MAX_BW GNUNET_ATS_MaxBandwidth |
33 | 33 | ||
34 | #define RIL_ACTION_INVALID -1 | 34 | #define RIL_ACTION_INVALID -1 |
35 | #define RIL_INTERVAL_EXPONENT 10 | 35 | #define RIL_INTERVAL_EXPONENT 10 |
36 | #define RIL_UTILITY_DELAY_MAX 1000 | 36 | #define RIL_UTILITY_DELAY_MAX 1000 |
37 | 37 | ||
38 | #define RIL_DEFAULT_STEP_TIME_MIN GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 100) | 38 | #define RIL_DEFAULT_STEP_TIME_MIN GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 200) |
39 | #define RIL_DEFAULT_STEP_TIME_MAX GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 1000) | 39 | #define RIL_DEFAULT_STEP_TIME_MAX GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 1000) |
40 | #define RIL_DEFAULT_ALGORITHM RIL_ALGO_Q | 40 | #define RIL_DEFAULT_ALGORITHM RIL_ALGO_Q |
41 | #define RIL_DEFAULT_SELECT RIL_SELECT_EGREEDY | 41 | #define RIL_DEFAULT_SELECT RIL_SELECT_EGREEDY |
@@ -44,12 +44,12 @@ | |||
44 | #define RIL_DEFAULT_DISCOUNT_GAMMA 0.5 | 44 | #define RIL_DEFAULT_DISCOUNT_GAMMA 0.5 |
45 | #define RIL_DEFAULT_GRADIENT_STEP_SIZE 0.1 | 45 | #define RIL_DEFAULT_GRADIENT_STEP_SIZE 0.1 |
46 | #define RIL_DEFAULT_TRACE_DECAY 0.5 | 46 | #define RIL_DEFAULT_TRACE_DECAY 0.5 |
47 | #define RIL_DEFAULT_EXPLORE_RATIO 0.2 | 47 | #define RIL_DEFAULT_EXPLORE_RATIO 0.1 |
48 | #define RIL_DEFAULT_RBF_DIVISOR 50 | 48 | #define RIL_DEFAULT_RBF_DIVISOR 50 |
49 | #define RIL_DEFAULT_GLOBAL_REWARD_SHARE 0.5 | 49 | #define RIL_DEFAULT_GLOBAL_REWARD_SHARE 0.5 |
50 | #define RIL_DEFAULT_TEMPERATURE 1.0 | 50 | #define RIL_DEFAULT_TEMPERATURE 1.0 |
51 | 51 | ||
52 | #define RIL_INC_DEC_STEP_SIZE 100 | 52 | #define RIL_INC_DEC_STEP_SIZE 1 |
53 | #define RIL_NOP_DECAY 0.5 | 53 | #define RIL_NOP_DECAY 0.5 |
54 | 54 | ||
55 | /** | 55 | /** |
@@ -1828,11 +1828,11 @@ ril_step_schedule_next (struct GAS_RIL_Handle *solver) | |||
1828 | 1828 | ||
1829 | time_next = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS, (unsigned long long) y); | 1829 | time_next = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS, (unsigned long long) y); |
1830 | 1830 | ||
1831 | LOG (GNUNET_ERROR_TYPE_INFO, "ratio: %f, factor: %f, offset: %f, y: %f\n", | 1831 | // LOG (GNUNET_ERROR_TYPE_INFO, "ratio: %f, factor: %f, offset: %f, y: %f\n", |
1832 | used_ratio, | 1832 | // used_ratio, |
1833 | factor, | 1833 | // factor, |
1834 | offset, | 1834 | // offset, |
1835 | y); | 1835 | // y); |
1836 | 1836 | ||
1837 | if (solver->simulate) | 1837 | if (solver->simulate) |
1838 | { | 1838 | { |