aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-02-01 14:15:34 +0000
committerChristian Grothoff <christian@grothoff.org>2010-02-01 14:15:34 +0000
commit42a0353260b0f1cf7f7d00f47399bfbc53e34bad (patch)
tree432ff8e3b6f005fd796be641a6ce5ef1cec93fab /src/fs/test_fs_download.c
parent8f30685560bfd084d681aa3a9470002479bcff80 (diff)
downloadgnunet-42a0353260b0f1cf7f7d00f47399bfbc53e34bad.tar.gz
gnunet-42a0353260b0f1cf7f7d00f47399bfbc53e34bad.zip
fixes
Diffstat (limited to 'src/fs/test_fs_download.c')
-rw-r--r--src/fs/test_fs_download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c
index d4b32b8c8..3968068e4 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_YES 32#define VERBOSE GNUNET_NO
33 33
34#define START_ARM GNUNET_YES 34#define START_ARM GNUNET_YES
35 35
@@ -143,7 +143,7 @@ progress_cb (void *cls,
143 break; 143 break;
144 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 144 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
145 printf ("Publishing complete, %llu kbps.\n", 145 printf ("Publishing complete, %llu kbps.\n",
146 (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); 146 (unsigned long long) (FILESIZE * 1000LL / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024LL));
147 fn = GNUNET_DISK_mktemp ("gnunet-download-test-dst"); 147 fn = GNUNET_DISK_mktemp ("gnunet-download-test-dst");
148 start = GNUNET_TIME_absolute_get (); 148 start = GNUNET_TIME_absolute_get ();
149 download = GNUNET_FS_download_start (fs, 149 download = GNUNET_FS_download_start (fs,
@@ -160,7 +160,7 @@ progress_cb (void *cls,
160 break; 160 break;
161 case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: 161 case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED:
162 printf ("Download complete, %llu kbps.\n", 162 printf ("Download complete, %llu kbps.\n",
163 (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); 163 (unsigned long long) (FILESIZE * 1000LL / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024LL));
164 GNUNET_SCHEDULER_add_now (sched, 164 GNUNET_SCHEDULER_add_now (sched,
165 &abort_download_task, 165 &abort_download_task,
166 NULL); 166 NULL);