# HG changeset patch
# User Chip Vincent <cvincent(a)us.ibm.com>
# Date 1309971496 14400
# Node ID a0dd50c2e523174794974dd1666e8fd611673d3a
# Parent 20138a9d4f2b4780664545e412cab7a4c26d7503
Minor fix for MemoryPool.AllocationUnits
The property value from AllocationUnits in the MemoryPool shows "bytes*210".
The correct value should be "bytes*2^10". This fix is essential for clients
to properly convert/calculate.
Reference: DSP1045 - MemoryResourceAllocationProfile (ch.7.1 AllocationUnits)
Signed-off-by: Chip Vincent <cvincent(a)us.ibm.com>
diff --git a/src/Virt_DevicePool.c b/src/Virt_DevicePool.c
--- a/src/Virt_DevicePool.c
+++ b/src/Virt_DevicePool.c
@@ -797,7 +797,7 @@
mempool_set_total(inst, conn);
mempool_set_consumed(inst, conn);
- set_params(inst, CIM_RES_TYPE_MEM, id, "byte*210", NULL, true);
+ set_params(inst, CIM_RES_TYPE_MEM, id, "byte*2^10", NULL, true);
inst_list_add(list, inst);