Skip to content

Commit

Permalink
Fixed view problems on portal cards
Browse files Browse the repository at this point in the history
  • Loading branch information
jojo141185 committed Oct 22, 2023
1 parent 2f7b693 commit cec0b97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/templates/portals.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
<i class="me-2 fa fa-ban"{{ "hidden" if portals[portal].enabled =='true' }}></i>
{{ portals[portal].name }}
</div>
<div class="card-body">
<div class="card-body" style="font-size: 80%">
<table id="macTable" class="table table-sm mt-2">
<thead>
<tr>
<th>MAC Address</th>
<th>Expiry Date</th>
<th>Expiry</th>
<th>Playtime</th>
<th>Error Rate</th>
<th>Error</th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -88,7 +88,7 @@
var errors = {{ value.stats.errors | tojson }};
var requests = {{ value.stats.requests | tojson }};
if (errors !== null && requests !== null && requests !== 0) {
var errorRate = (errors / requests * 100).toFixed(2);
var errorRate = (errors / requests * 100).toFixed(0);
errorRateVal.innerHTML = errorRate + "%";
} else {
errorRateVal.innerHTML = "N/A";
Expand Down

0 comments on commit cec0b97

Please sign in to comment.