aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_unindex.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_unindex.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/fs/test_fs_unindex.c')
-rw-r--r--src/fs/test_fs_unindex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c
index 6b89dcad8..033195f0b 100644
--- a/src/fs/test_fs_unindex.c
+++ b/src/fs/test_fs_unindex.c
@@ -92,20 +92,20 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
92 break; 92 break;
93 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 93 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
94 printf ("Publishing complete, %llu kbps.\n", 94 printf ("Publishing complete, %llu kbps.\n",
95 (unsigned long long) (FILESIZE * 1000 / 95 (unsigned long long) (FILESIZE * 1000000LL /
96 (1 + 96 (1 +
97 GNUNET_TIME_absolute_get_duration 97 GNUNET_TIME_absolute_get_duration
98 (start).rel_value) / 1024)); 98 (start).rel_value_us) / 1024));
99 start = GNUNET_TIME_absolute_get (); 99 start = GNUNET_TIME_absolute_get ();
100 unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); 100 unindex = GNUNET_FS_unindex_start (fs, fn, "unindex");
101 GNUNET_assert (unindex != NULL); 101 GNUNET_assert (unindex != NULL);
102 break; 102 break;
103 case GNUNET_FS_STATUS_UNINDEX_COMPLETED: 103 case GNUNET_FS_STATUS_UNINDEX_COMPLETED:
104 printf ("Unindex complete, %llu kbps.\n", 104 printf ("Unindex complete, %llu kbps.\n",
105 (unsigned long long) (FILESIZE * 1000 / 105 (unsigned long long) (FILESIZE * 1000000LL /
106 (1 + 106 (1 +
107 GNUNET_TIME_absolute_get_duration 107 GNUNET_TIME_absolute_get_duration
108 (start).rel_value) / 1024)); 108 (start).rel_value_us) / 1024));
109 GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, 109 GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL,
110 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 110 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
111 break; 111 break;