We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bad35d commit a26f126Copy full SHA for a26f126
proxstar/templates/vm_details.html
@@ -105,10 +105,10 @@ <h3 class="card-title">VM Details</h3>
105
</dd>
106
<dt>Memory</dt>
107
<dd>
108
- {% if vm.mem < 1024 %}
+ {% if int(vm.mem) < 1024 %}
109
{{ vm.mem }}MB
110
{% else %}
111
- {{ vm.mem // 1024 }}GB
+ {{ int(vm.mem) // 1024 }}GB
112
{% endif %}
113
{% if vm.qmpstatus == 'running' or vm.qmpstatus == 'suspended' or vm.qmpstatus == 'paused' %}
114
<button class="btn btn-default proxstar-vmbtn" id="change-mem" data-vmid="{{ vm.id }}" data-usage="{{ usage['mem'] - vm.config['memory'] // 1024 }}" data-limit="{{ limits['mem'] }}">
0 commit comments