From b7564dfc194bd9e3c83bebe7d4c5fc613339364e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 21 Sep 2024 12:23:05 -0700 Subject: [PATCH] Improved logging [skip ci] --- src/hnswscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnswscan.c b/src/hnswscan.c index 95125a2..88edf3b 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -211,7 +211,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir) UnlockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock); #if defined(HNSW_MEMORY) - elog(INFO, "memory: %zu MB", MemoryContextMemAllocated(so->tmpCtx, false) / (1024 * 1024)); + elog(INFO, "memory: %zu KB", MemoryContextMemAllocated(so->tmpCtx, false) / 1024); #endif if (list_length(so->w) == 0)