Skip to content

Commit a8df7d6

Browse files
committed
i didn't read any documentation before starting this
1 parent a26f126 commit a8df7d6

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 int(vm.mem) < 1024 %}
108+
{% if vm.mem | int < 1024 %}
109109
{{ vm.mem }}MB
110110
{% else %}
111-
{{ int(vm.mem) // 1024 }}GB
111+
{{ vm.mem | int // 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)