nostrdb/ndb: measure query performance

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-01-05 22:54:46 -08:00
committed by Daniel D’Aquino
parent 3993679cc0
commit 25bcf9c243

View File

@@ -2351,7 +2351,7 @@ static int compare_query_results(const void *pa, const void *pb)
b = (struct ndb_query_result *)pb;
if (a->note->created_at == b->note->created_at) {
return memcmp(a->note->id, b->note->id, 32);
return 0;
} else if (a->note->created_at > b->note->created_at) {
return -1;
} else {