summaryrefslogtreecommitdiffstats
path: root/include/shard/PGM.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/shard/PGM.h')
-rw-r--r--include/shard/PGM.h4
1 files 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<R>* m_data;