Merge ~ya-bo-ng/maas:precise-available-ram into maas:master

Proposed by Anthony Dillon
Status: Merged
Approved by: Mike Pontillo
Approved revision: 106c24b65c127f4984bc65a155b8e9b19bf3a2d8
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~ya-bo-ng/maas:precise-available-ram
Merge into: maas:master
Diff against target: 13 lines (+1/-1)
1 file modified
src/maasserver/static/partials/pod-details.html (+1/-1)
Reviewer Review Type Date Requested Status
Mike Pontillo (community) Approve
Review via email: mp+357704@code.launchpad.net

Commit message

LP: #1797659 - Add precision to the available RAM in pod summary

Description of the change

Simply add precision to the displayed value of available RAM.

To post a comment you must log in.
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Looks good! QA'd, +1.

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/maasserver/static/partials/pod-details.html b/src/maasserver/static/partials/pod-details.html
2index cb0262d..9f7e043 100644
3--- a/src/maasserver/static/partials/pod-details.html
4+++ b/src/maasserver/static/partials/pod-details.html
5@@ -560,7 +560,7 @@
6 </div>
7 <p class="u-no-max-width">
8 <span>{$ pod.used.memory_gb $} GiB used</span>
9- <span class="u-float--right">{$ availableWithOvercommit(pod.total.memory_gb, pod.used.memory_gb, pod.memory_over_commit_ratio) $} GiB available</span>
10+ <span class="u-float--right">{$ availableWithOvercommit(pod.total.memory_gb, pod.used.memory_gb, pod.memory_over_commit_ratio, 2) $} GiB available</span>
11 </p>
12 </div>
13 </div>

Subscribers

People subscribed via source and target branches