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/datastore/plugin_datastore_heap.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/datastore/plugin_datastore_heap.c')
-rw-r--r-- | src/datastore/plugin_datastore_heap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_heap.c b/src/datastore/plugin_datastore_heap.c index 9f9360bfb..79dcb9043 100644 --- a/src/datastore/plugin_datastore_heap.c +++ b/src/datastore/plugin_datastore_heap.c | |||
@@ -226,7 +226,7 @@ heap_plugin_put (void *cls, | |||
226 | value->data = &value[1]; | 226 | value->data = &value[1]; |
227 | value->expire_heap = GNUNET_CONTAINER_heap_insert (plugin->by_expiration, | 227 | value->expire_heap = GNUNET_CONTAINER_heap_insert (plugin->by_expiration, |
228 | value, | 228 | value, |
229 | expiration.abs_value); | 229 | expiration.abs_value_us); |
230 | value->replication_heap = GNUNET_CONTAINER_heap_insert (plugin->by_replication, | 230 | value->replication_heap = GNUNET_CONTAINER_heap_insert (plugin->by_replication, |
231 | value, | 231 | value, |
232 | replication); | 232 | replication); |
@@ -628,12 +628,12 @@ heap_plugin_update (void *cls, | |||
628 | 628 | ||
629 | value = (struct Value*) (long) uid; | 629 | value = (struct Value*) (long) uid; |
630 | GNUNET_assert (NULL != value); | 630 | GNUNET_assert (NULL != value); |
631 | if (value->expiration.abs_value != expire.abs_value) | 631 | if (value->expiration.abs_value_us != expire.abs_value_us) |
632 | { | 632 | { |
633 | value->expiration = expire; | 633 | value->expiration = expire; |
634 | GNUNET_CONTAINER_heap_update_cost (plugin->by_expiration, | 634 | GNUNET_CONTAINER_heap_update_cost (plugin->by_expiration, |
635 | value->expire_heap, | 635 | value->expire_heap, |
636 | expire.abs_value); | 636 | expire.abs_value_us); |
637 | } | 637 | } |
638 | if ( (delta < 0) && (value->priority < - delta) ) | 638 | if ( (delta < 0) && (value->priority < - delta) ) |
639 | value->priority = 0; | 639 | value->priority = 0; |