]> git.proxmox.com Git - pve-installer.git/commitdiff
run env: add comment for query_total_memory()
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 31 Oct 2023 12:10:53 +0000 (13:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 3 Nov 2023 12:00:40 +0000 (13:00 +0100)
This is mainly to explicitly document the unit of its return value.

No functional changes.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Proxmox/Install/RunEnv.pm

index c9d788b89690c1642f40160c7898949344e53162..3e810b216731b1c1cd6d387e5059167bd637940a 100644 (file)
@@ -18,6 +18,8 @@ my sub fromjs : prototype($) {
 }
 
 my $mem_total = undef;
+# Returns the system memory size in MiB, and falls back to 512 MiB if it
+# could not be determined.
 sub query_total_memory : prototype() {
     return $mem_total if defined($mem_total);