Skip to content

Commit

Permalink
testing in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Qelxiros committed Jun 6, 2024
1 parent 3bad35d commit a26f126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxstar/templates/vm_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ <h3 class="card-title">VM Details</h3>
</dd>
<dt>Memory</dt>
<dd>
{% if vm.mem < 1024 %}
{% if int(vm.mem) < 1024 %}
{{ vm.mem }}MB
{% else %}
{{ vm.mem // 1024 }}GB
{{ int(vm.mem) // 1024 }}GB
{% endif %}
{% if vm.qmpstatus == 'running' or vm.qmpstatus == 'suspended' or vm.qmpstatus == 'paused' %}
<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'] }}">
Expand Down

0 comments on commit a26f126

Please sign in to comment.