Skip to content

Commit

Permalink
i hope memory is the only value with a new type
Browse files Browse the repository at this point in the history
  • Loading branch information
Qelxiros committed Jun 6, 2024
1 parent a8df7d6 commit e7dfcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxstar/templates/vm_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3 class="card-title">VM Details</h3>
{{ vm.mem | int // 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'] }}">
<button class="btn btn-default proxstar-vmbtn" id="change-mem" data-vmid="{{ vm.id }}" data-usage="{{ usage['mem'] | int - vm.config['memory'] | int // 1024 }}" data-limit="{{ limits['mem'] }}">
<i class="fas fa-cog"></i>
</button>
{% else %}
Expand Down

0 comments on commit e7dfcda

Please sign in to comment.