Skip to content

Commit a26f126

Browse files
committed
testing in prod
1 parent 3bad35d commit a26f126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxstar/templates/vm_details.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ <h3 class="card-title">VM Details</h3>
105105
</dd>
106106
<dt>Memory</dt>
107107
<dd>
108-
{% if vm.mem < 1024 %}
108+
{% if int(vm.mem) < 1024 %}
109109
{{ vm.mem }}MB
110110
{% else %}
111-
{{ vm.mem // 1024 }}GB
111+
{{ int(vm.mem) // 1024 }}GB
112112
{% endif %}
113113
{% if vm.qmpstatus == 'running' or vm.qmpstatus == 'suspended' or vm.qmpstatus == 'paused' %}
114114
<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

Comments
 (0)