summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/query_progress/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnetdata/query_progress/progress.c')
-rw-r--r--src/libnetdata/query_progress/progress.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libnetdata/query_progress/progress.c b/src/libnetdata/query_progress/progress.c
index 10e083e0c..157f20f11 100644
--- a/src/libnetdata/query_progress/progress.c
+++ b/src/libnetdata/query_progress/progress.c
@@ -8,7 +8,7 @@
// hashtable for HASHED_KEY
// cleanup hashtable defines
-#include "../simple_hashtable_undef.h"
+#include "../simple_hashtable/simple_hashtable_undef.h"
struct query;
#define SIMPLE_HASHTABLE_VALUE_TYPE struct query
@@ -16,7 +16,7 @@ struct query;
#define SIMPLE_HASHTABLE_NAME _QUERY
#define SIMPLE_HASHTABLE_VALUE2KEY_FUNCTION query_transaction
#define SIMPLE_HASHTABLE_COMPARE_KEYS_FUNCTION query_compare_keys
-#include "../simple_hashtable.h"
+#include "../simple_hashtable/simple_hashtable.h"
// ----------------------------------------------------------------------------
@@ -76,12 +76,7 @@ static struct progress {
};
SIMPLE_HASHTABLE_HASH query_hash(nd_uuid_t *transaction) {
- struct uuid_hi_lo_t {
- uint64_t hi;
- uint64_t lo;
- } *parts = (struct uuid_hi_lo_t *)transaction;
-
- return parts->lo;
+ return XXH3_64bits(transaction, sizeof(*transaction));
}
static void query_progress_init_unsafe(void) {