aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-01-20 11:45:01 +0000
committerChristian Grothoff <christian@grothoff.org>2011-01-20 11:45:01 +0000
commit81dfe20c8ee82d202244766f2914683a63d078ca (patch)
tree450aec90e2ff3d612b69b944859f646afde318a4 /src/fs/test_fs_download.c
parent04b193a6fbdf63c8c70a10a588b3e996132afa63 (diff)
downloadgnunet-81dfe20c8ee82d202244766f2914683a63d078ca.tar.gz
gnunet-81dfe20c8ee82d202244766f2914683a63d078ca.zip
abs_value
Diffstat (limited to 'src/fs/test_fs_download.c')
-rw-r--r--src/fs/test_fs_download.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c
index a06054f6d..0d13b3639 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
@@ -86,6 +86,8 @@ timeout_kill_task (void *cls,
86 GNUNET_FS_publish_stop (publish); 86 GNUNET_FS_publish_stop (publish);
87 publish = NULL; 87 publish = NULL;
88 } 88 }
89 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
90 "Timeout downloading file\n");
89 timeout_kill = GNUNET_SCHEDULER_NO_TASK; 91 timeout_kill = GNUNET_SCHEDULER_NO_TASK;
90 err = 1; 92 err = 1;
91} 93}
@@ -140,10 +142,10 @@ progress_cb (void *cls,
140 case GNUNET_FS_STATUS_PUBLISH_PROGRESS: 142 case GNUNET_FS_STATUS_PUBLISH_PROGRESS:
141#if VERBOSE 143#if VERBOSE
142 printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", 144 printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n",
143 (unsigned long long) event->abs_value.publish.completed, 145 (unsigned long long) event->value.publish.completed,
144 (unsigned long long) event->abs_value.publish.size, 146 (unsigned long long) event->value.publish.size,
145 event->abs_value.publish.specifics.progress.depth, 147 event->value.publish.specifics.progress.depth,
146 (unsigned long long) event->abs_value.publish.specifics.progress.offset); 148 (unsigned long long) event->value.publish.specifics.progress.offset);
147#endif 149#endif
148 break; 150 break;
149 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 151 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
@@ -173,10 +175,10 @@ progress_cb (void *cls,
173 GNUNET_assert (download == event->value.download.dc); 175 GNUNET_assert (download == event->value.download.dc);
174#if VERBOSE 176#if VERBOSE
175 printf ("Download is progressing (%llu/%llu at level %u off %llu)...\n", 177 printf ("Download is progressing (%llu/%llu at level %u off %llu)...\n",
176 (unsigned long long) event->abs_value.download.completed, 178 (unsigned long long) event->value.download.completed,
177 (unsigned long long) event->abs_value.download.size, 179 (unsigned long long) event->value.download.size,
178 event->abs_value.download.specifics.progress.depth, 180 event->value.download.specifics.progress.depth,
179 (unsigned long long) event->abs_value.download.specifics.progress.offset); 181 (unsigned long long) event->value.download.specifics.progress.offset);
180#endif 182#endif
181 break; 183 break;
182 case GNUNET_FS_STATUS_PUBLISH_ERROR: 184 case GNUNET_FS_STATUS_PUBLISH_ERROR: