diff --git a/proxstar/templates/vm_details.html b/proxstar/templates/vm_details.html index 957a015..36528bb 100644 --- a/proxstar/templates/vm_details.html +++ b/proxstar/templates/vm_details.html @@ -105,10 +105,10 @@
Memory
- {% if int(vm.mem) < 1024 %} + {% if vm.mem | int < 1024 %} {{ vm.mem }}MB {% else %} - {{ int(vm.mem) // 1024 }}GB + {{ vm.mem | int // 1024 }}GB {% endif %} {% if vm.qmpstatus == 'running' or vm.qmpstatus == 'suspended' or vm.qmpstatus == 'paused' %}