aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_postgres.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/datacache/plugin_datacache_postgres.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/datacache/plugin_datacache_postgres.c')
-rw-r--r--src/datacache/plugin_datacache_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c
index e7d2e72c2..c8d66ead1 100644
--- a/src/datacache/plugin_datacache_postgres.c
+++ b/src/datacache/plugin_datacache_postgres.c
@@ -176,7 +176,7 @@ postgres_plugin_put (void *cls, const struct GNUNET_HashCode * key, size_t size,
176 struct Plugin *plugin = cls; 176 struct Plugin *plugin = cls;
177 PGresult *ret; 177 PGresult *ret;
178 uint32_t btype = htonl (type); 178 uint32_t btype = htonl (type);
179 uint64_t bexpi = GNUNET_TIME_absolute_hton (discard_time).abs_value__; 179 uint64_t bexpi = GNUNET_TIME_absolute_hton (discard_time).abs_value_us__;
180 180
181 const char *paramValues[] = { 181 const char *paramValues[] = {
182 (const char *) &btype, 182 (const char *) &btype,
@@ -277,7 +277,7 @@ postgres_plugin_get (void *cls, const struct GNUNET_HashCode * key,
277 } 277 }
278 for (i = 0; i < cnt; i++) 278 for (i = 0; i < cnt; i++)
279 { 279 {
280 expiration_time.abs_value = 280 expiration_time.abs_value_us =
281 GNUNET_ntohll (*(uint64_t *) PQgetvalue (res, i, 0)); 281 GNUNET_ntohll (*(uint64_t *) PQgetvalue (res, i, 0));
282 type = ntohl (*(uint32_t *) PQgetvalue (res, i, 1)); 282 type = ntohl (*(uint32_t *) PQgetvalue (res, i, 1));
283 size = PQgetlength (res, i, 2); 283 size = PQgetlength (res, i, 2);