diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-03-25 09:48:05 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-03-25 09:48:05 +0000 |
commit | b3e356a28f8c75b96edef47361f368f9fe8b48c3 (patch) | |
tree | 1bb141ac44dbd49d797f335cbbdb3c6d903ae3d0 /src/transport/transport.h | |
parent | 7351f665060fc29a3d62c5c59e53c27ea0dd341b (diff) | |
download | gnunet-b3e356a28f8c75b96edef47361f368f9fe8b48c3.tar.gz gnunet-b3e356a28f8c75b96edef47361f368f9fe8b48c3.zip |
ats changes
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index 3b0c4d3ef..5cbfce34c 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -33,7 +33,8 @@ | |||
33 | /* Minimum time between to calculations*/ | 33 | /* Minimum time between to calculations*/ |
34 | #define ATS_MIN_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 250) | 34 | #define ATS_MIN_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 250) |
35 | #define ATS_EXEC_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1) | 35 | #define ATS_EXEC_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1) |
36 | #define ATS_MAX_EXEC_DURATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 500) | 36 | #define ATS_MAX_EXEC_DURATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 500) |
37 | #define ATS_MAX_ITERATIONS INT_MAX | ||
37 | 38 | ||
38 | struct ATS_info | 39 | struct ATS_info |
39 | { | 40 | { |
@@ -54,6 +55,10 @@ struct ATS_info | |||
54 | * Maximum execution time per calculation | 55 | * Maximum execution time per calculation |
55 | */ | 56 | */ |
56 | struct GNUNET_TIME_Relative max_exec_duration; | 57 | struct GNUNET_TIME_Relative max_exec_duration; |
58 | /** | ||
59 | * Maximum number of LP iterations per calculation | ||
60 | */ | ||
61 | int max_iterations; | ||
57 | 62 | ||
58 | GNUNET_SCHEDULER_TaskIdentifier ats_task; | 63 | GNUNET_SCHEDULER_TaskIdentifier ats_task; |
59 | }; | 64 | }; |