aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_publish.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
commit3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch)
tree61ce41a52cd6e7232cead77818ef265993b2427e /src/fs/test_fs_publish.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/fs/test_fs_publish.c')
-rw-r--r--src/fs/test_fs_publish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c
index e51d6e5d4..7ff9c9202 100644
--- a/src/fs/test_fs_publish.c
+++ b/src/fs/test_fs_publish.c
@@ -82,10 +82,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
82 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 82 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
83 ret = event->value.publish.cctx; 83 ret = event->value.publish.cctx;
84 printf ("Publish complete, %llu kbps.\n", 84 printf ("Publish complete, %llu kbps.\n",
85 (unsigned long long) (FILESIZE * 1000 / 85 (unsigned long long) (FILESIZE * 1000000LL /
86 (1 + 86 (1 +
87 GNUNET_TIME_absolute_get_duration 87 GNUNET_TIME_absolute_get_duration
88 (start).rel_value) / 1024)); 88 (start).rel_value_us) / 1024));
89 if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) 89 if (0 == strcmp ("publish-context-dir", event->value.publish.cctx))
90 GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, 90 GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL,
91 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 91 GNUNET_SCHEDULER_REASON_PREREQ_DONE);