diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-26 13:05:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-26 13:05:09 +0000 |
commit | e4f81a9c9600482ee71e52d8dab6775d56d4d2c6 (patch) | |
tree | 167f988fe012ccb442e2180bbf00ea63185aec15 /src/fs | |
parent | bc22ad5ddb9e582bf7d3479711f25b4bdfb9989b (diff) | |
download | gnunet-e4f81a9c9600482ee71e52d8dab6775d56d4d2c6.tar.gz gnunet-e4f81a9c9600482ee71e52d8dab6775d56d4d2c6.zip |
dbg
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_test_lib.c | 7 | ||||
-rw-r--r-- | src/fs/test_fs_download.c | 2 | ||||
-rw-r--r-- | 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, | |||
191 | daemon, | 191 | daemon, |
192 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 192 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
193 | break; | 193 | break; |
194 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: | ||
195 | if (daemon->verbose) | ||
196 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
197 | "Download at %llu/%llu bytes\n", | ||
198 | (unsigned long long) info->value.download.specifics.progress.offset, | ||
199 | (unsigned long long) info->value.download.size); | ||
200 | break; | ||
194 | case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: | 201 | case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: |
195 | GNUNET_SCHEDULER_cancel (daemon->download_sched, | 202 | GNUNET_SCHEDULER_cancel (daemon->download_sched, |
196 | daemon->download_timeout_task); | 203 | 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 @@ | |||
29 | #include "gnunet_arm_service.h" | 29 | #include "gnunet_arm_service.h" |
30 | #include "gnunet_fs_service.h" | 30 | #include "gnunet_fs_service.h" |
31 | 31 | ||
32 | #define VERBOSE GNUNET_NO | 32 | #define VERBOSE GNUNET_YES |
33 | 33 | ||
34 | #define START_ARM GNUNET_YES | 34 | #define START_ARM GNUNET_YES |
35 | 35 | ||
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 | |||
36 | [fs] | 36 | [fs] |
37 | PORT = 42471 | 37 | PORT = 42471 |
38 | HOSTNAME = localhost | 38 | HOSTNAME = localhost |
39 | #DEBUG = YES | 39 | DEBUG = YES |
40 | #PREFIX = valgrind --tool=memcheck --leak-check=yes | 40 | #PREFIX = valgrind --tool=memcheck --leak-check=yes |
41 | #BINARY = /home/grothoff/bin/gnunet-service-fs | 41 | #BINARY = /home/grothoff/bin/gnunet-service-fs |
42 | 42 | ||