diff options
Diffstat (limited to 'src/datacache/plugin_datacache_postgres.c')
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 4 |
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); |