nostrdb/ndb: measure query performance
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
3993679cc0
commit
25bcf9c243
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user