diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
commit | 3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch) | |
tree | 61ce41a52cd6e7232cead77818ef265993b2427e /src/fs/test_fs_publish_persistence.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/fs/test_fs_publish_persistence.c')
-rw-r--r-- | src/fs/test_fs_publish_persistence.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/test_fs_publish_persistence.c b/src/fs/test_fs_publish_persistence.c index 577831a28..1dc8c43aa 100644 --- a/src/fs/test_fs_publish_persistence.c +++ b/src/fs/test_fs_publish_persistence.c | |||
@@ -134,10 +134,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
134 | consider_restart (event->status); | 134 | consider_restart (event->status); |
135 | ret = event->value.publish.cctx; | 135 | ret = event->value.publish.cctx; |
136 | printf ("Publish complete, %llu kbps.\n", | 136 | printf ("Publish complete, %llu kbps.\n", |
137 | (unsigned long long) (FILESIZE * 1000LL / | 137 | (unsigned long long) (FILESIZE * 1000000LL / |
138 | (1 + | 138 | (1 + |
139 | GNUNET_TIME_absolute_get_duration | 139 | GNUNET_TIME_absolute_get_duration |
140 | (start).rel_value) / 1024)); | 140 | (start).rel_value_us) / 1024)); |
141 | if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) | 141 | if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) |
142 | GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL); | 142 | GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL); |
143 | break; | 143 | break; |