Commit 6f66d91d authored by Takashi Kajinami's avatar Takashi Kajinami Committed by Daniel P. Berrangé
Browse files

Clarify unit of memory size



The unit of memory size is not kilobytes (blocks of 1000) but kibibytes
(blocks of 1024). Update the documentation to clarify this.

Signed-off-by: default avatarTakashi Kajinami <kajinamit@oss.nttdata.com>
parent 33a27a2c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1426,7 +1426,7 @@ public class Domain {
    /**
     * Retrieve the maximum amount of physical memory allocated to a domain.
     *
     * @return the memory in kilobytes
     * @return the memory size in kibibytes (blocks of 1024 bytes)
     * @throws LibvirtException
     */
    public long getMaxMemory() throws LibvirtException {
@@ -2490,7 +2490,7 @@ public class Domain {
     * domain. This function requires priviledged access to the hypervisor.
     *
     * @param memory
     *            the amount memory in kilobytes
     *            the memory size in kibibytes (blocks of 1024 bytes)
     * @throws LibvirtException
     */
    public void setMaxMemory(final long memory) throws LibvirtException {
@@ -2503,7 +2503,7 @@ public class Domain {
     * hypervisor.
     *
     * @param memory
     *            in kilobytes
     *            the memory size in kibibytes (blocks of 1024 bytes)
     * @throws LibvirtException
     */
    public void setMemory(final long memory) throws LibvirtException {