diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-06-11 09:58:37 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-06-11 09:58:37 +0000 |
commit | d9cee5d7b959ab6e04e26677f6d6f39195f80d37 (patch) | |
tree | ec2538e520ec750b5cecc6db36a7c151e095ad32 /src/regex/gnunet-regex-profiler.c | |
parent | f9646e68889d31f6f0507435268972604f899c94 (diff) | |
download | gnunet-d9cee5d7b959ab6e04e26677f6d6f39195f80d37.tar.gz gnunet-d9cee5d7b959ab6e04e26677f6d6f39195f80d37.zip |
- dont wait so long
Diffstat (limited to 'src/regex/gnunet-regex-profiler.c')
-rw-r--r-- | src/regex/gnunet-regex-profiler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c index 8515e4e4f..83395aad1 100644 --- a/src/regex/gnunet-regex-profiler.c +++ b/src/regex/gnunet-regex-profiler.c | |||
@@ -988,9 +988,11 @@ announce_next_regex (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
988 | { | 988 | { |
989 | if (strings_found != num_peers) | 989 | if (strings_found != num_peers) |
990 | { | 990 | { |
991 | struct GNUNET_TIME_Relative new_delay; | ||
991 | if (GNUNET_SCHEDULER_NO_TASK != search_timeout_task) | 992 | if (GNUNET_SCHEDULER_NO_TASK != search_timeout_task) |
992 | GNUNET_SCHEDULER_cancel (search_timeout_task); | 993 | GNUNET_SCHEDULER_cancel (search_timeout_task); |
993 | search_timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_HOURS, | 994 | new_delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15); |
995 | search_timeout_task = GNUNET_SCHEDULER_add_delayed (new_delay, | ||
994 | &search_timed_out, | 996 | &search_timed_out, |
995 | NULL); | 997 | NULL); |
996 | } | 998 | } |