From e4f81a9c9600482ee71e52d8dab6775d56d4d2c6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 26 Feb 2010 13:05:09 +0000 Subject: [PATCH] dbg --- src/fs/fs_test_lib.c | 7 +++++++ src/fs/test_fs_download.c | 2 +- src/fs/test_fs_download_data.conf | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index ee8ce46c6..7fa6707c9 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c @@ -191,6 +191,13 @@ progress_cb (void *cls, daemon, GNUNET_SCHEDULER_REASON_PREREQ_DONE); break; + case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: + if (daemon->verbose) + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Download at %llu/%llu bytes\n", + (unsigned long long) info->value.download.specifics.progress.offset, + (unsigned long long) info->value.download.size); + break; case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: GNUNET_SCHEDULER_cancel (daemon->download_sched, daemon->download_timeout_task); diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c index af1fbfa50..afb95bc71 100644 --- a/src/fs/test_fs_download.c +++ b/src/fs/test_fs_download.c @@ -29,7 +29,7 @@ #include "gnunet_arm_service.h" #include "gnunet_fs_service.h" -#define VERBOSE GNUNET_NO +#define VERBOSE GNUNET_YES #define START_ARM GNUNET_YES diff --git a/src/fs/test_fs_download_data.conf b/src/fs/test_fs_download_data.conf index d575f4f8c..d61eaca37 100644 --- a/src/fs/test_fs_download_data.conf +++ b/src/fs/test_fs_download_data.conf @@ -36,7 +36,7 @@ HOSTNAME = localhost [fs] PORT = 42471 HOSTNAME = localhost -#DEBUG = YES +DEBUG = YES #PREFIX = valgrind --tool=memcheck --leak-check=yes #BINARY = /home/grothoff/bin/gnunet-service-fs -- 2.25.1