From 594d0b46c338c21b06009e4f769ecb9040d0b51e Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 26 Jun 2023 11:39:46 -0400 Subject: PGM Shard bugfixes --- include/shard/PGM.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/shard/PGM.h b/include/shard/PGM.h index f84fcc4..1622d7e 100644 --- a/include/shard/PGM.h +++ b/include/shard/PGM.h @@ -223,7 +223,7 @@ public: size_t get_memory_usage() { - return 0; + return m_pgm.size_in_bytes(); } private: @@ -257,7 +257,7 @@ private: } - return (m_data[idx].rec.key <= key) ? idx : m_reccnt; + return (m_data[idx].rec.key >= key) ? idx : m_reccnt; } Wrapped* m_data; -- cgit v1.2.3