From 258d1024de2f5c4059c666845f7f6e2fda5c0c40 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Thu, 3 May 2012 14:09:34 +0000 Subject: [PATCH] Fixed: FS#2205 - swappages variable is not set in openvz vhost template --- interface/lib/plugins/vm_openvz_plugin.inc.php | 1 + interface/web/vm/templates/openvz.conf.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/interface/lib/plugins/vm_openvz_plugin.inc.php b/interface/lib/plugins/vm_openvz_plugin.inc.php index b1ce8e618..42a653033 100644 --- a/interface/lib/plugins/vm_openvz_plugin.inc.php +++ b/interface/lib/plugins/vm_openvz_plugin.inc.php @@ -173,6 +173,7 @@ class vm_openvz_plugin { $tpl->setVar('numfile',$vm_template['numfile']); $tpl->setVar('avnumproc',$vm_template['avnumproc']); $tpl->setVar('numiptent',$vm_template['numiptent']); + $tpl->setVar('swappages',$vm_template['swappages']); $diskspace = $vm['diskspace']*1048576; $diskinodes = $vm['diskspace']*524288; diff --git a/interface/web/vm/templates/openvz.conf.tpl b/interface/web/vm/templates/openvz.conf.tpl index 06e6ac515..5bdd385a4 100644 --- a/interface/web/vm/templates/openvz.conf.tpl +++ b/interface/web/vm/templates/openvz.conf.tpl @@ -45,5 +45,6 @@ IP_ADDRESS="{tmpl_var name='ip_address'}" NAMESERVER="{tmpl_var name='nameserver'}" # alternative meminfo: "pages:256000" MEMINFO="privvmpages:1" +# SWAPPAGES="{tmpl_var name='swappages'}" CAPABILITY="{tmpl_var name='capability'}" -- GitLab