commit 2d215262b01c4d2d57c37d3e6c80ed7f01d1315d
parent 55a4b83e50c04cff21660dd5257318fe4eb410d9
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Mon, 3 Oct 2016 17:50:36 +0200
return younger instead of older results respect to the given time
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
@@ -268,7 +268,7 @@ postgres_initialize (void *cls)
",total_amount_frac"
",total_amount_curr"
" FROM merchant_transactions"
- " WHERE timestamp<=$1",
+ " WHERE timestamp>=$1",
1);
/* Setup prepared "SELECT" statements */
@@ -543,7 +543,7 @@ postgres_store_transfer_to_proof (void *cls,
}
/**
- * Return transactions older than the given date
+ * Return transactions younger than the given date
*
* @param cls our plugin handle
* @param date limit to transactions' age
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
@@ -301,7 +301,7 @@ run (void *cls)
timestamp = GNUNET_TIME_absolute_get();
GNUNET_TIME_round_abs (×tamp);
delta = GNUNET_TIME_UNIT_MINUTES;
- fake_now = GNUNET_TIME_absolute_add (timestamp, delta);
+ fake_now = GNUNET_TIME_absolute_subtract (timestamp, delta);
refund_deadline = GNUNET_TIME_absolute_get();
GNUNET_TIME_round_abs (&refund_deadline);
GNUNET_assert (GNUNET_OK ==