aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r--src/fs/fs_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c
index 9bc254254..38bd55caa 100644
--- a/src/fs/fs_search.c
+++ b/src/fs/fs_search.c
@@ -342,7 +342,7 @@ GNUNET_FS_search_probe_progress_ (void *cls,
342 { 342 {
343 /* should only happen if the cancel task was already 343 /* should only happen if the cancel task was already
344 created on 'DOWNLOAD_INACTIVE' as we were out of time */ 344 created on 'DOWNLOAD_INACTIVE' as we were out of time */
345 GNUNET_break (0 == sr->remaining_probe_time.rel_value); 345 GNUNET_break (0 == sr->remaining_probe_time.rel_value_us);
346 } 346 }
347 break; 347 break;
348 case GNUNET_FS_STATUS_DOWNLOAD_INACTIVE: 348 case GNUNET_FS_STATUS_DOWNLOAD_INACTIVE:
@@ -354,7 +354,7 @@ GNUNET_FS_search_probe_progress_ (void *cls,
354 dur = GNUNET_TIME_absolute_get_duration (sr->probe_active_time); 354 dur = GNUNET_TIME_absolute_get_duration (sr->probe_active_time);
355 sr->remaining_probe_time = 355 sr->remaining_probe_time =
356 GNUNET_TIME_relative_subtract (sr->remaining_probe_time, dur); 356 GNUNET_TIME_relative_subtract (sr->remaining_probe_time, dur);
357 if (0 == sr->remaining_probe_time.rel_value) 357 if (0 == sr->remaining_probe_time.rel_value_us)
358 sr->probe_cancel_task = 358 sr->probe_cancel_task =
359 GNUNET_SCHEDULER_add_now (&probe_failure_handler, sr); 359 GNUNET_SCHEDULER_add_now (&probe_failure_handler, sr);
360 GNUNET_FS_search_result_sync_ (sr); 360 GNUNET_FS_search_result_sync_ (sr);
@@ -843,7 +843,7 @@ process_result (struct GNUNET_FS_SearchContext *sc,
843 const void *data, 843 const void *data,
844 size_t size) 844 size_t size)
845{ 845{
846 if (GNUNET_TIME_absolute_get_duration (expiration).rel_value > 0) 846 if (GNUNET_TIME_absolute_get_duration (expiration).rel_value_us > 0)
847 { 847 {
848 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 848 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
849 "Result received has already expired.\n"); 849 "Result received has already expired.\n");