Skip to content

Commit

Permalink
Fixed: fix memory usage status bar issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao Chang authored and guusdk committed Jul 14, 2024
1 parent 446a66a commit 183ae87
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions xmppserver/src/main/webapp/system-clustering.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -408,23 +408,20 @@
<tr>
<% if (percent == 0) { %>

<td style="width: 100%"><img src="images/percent-bar-left.gif" width="30" height="4" alt=""></td>
<td style="height: 8px; width: 100%; background-image: url('images/percent-bar-left.gif')"></td>

<% } else { %>

<% if (percent >= 90) { %>

<td style="width: <%= percent %>%; background-image: url('images/percent-bar-used-high.gif')"
><img src="images/blank.gif" width="1" height="4" alt=""></td>
<td style="height: 8px; width: <%= percent %>%; background-image: url('images/percent-bar-used-high.gif')"></td>

<% } else { %>

<td style="width: <%= percent %>%; background-image: url('images/percent-bar-used-low.gif')"
><img src="images/blank.gif" width="1" height="4" alt=""></td>
<td style="height: 8px; width: <%= percent %>%; background-image: url('images/percent-bar-used-low.gif')"></td>

<% } %>
<td style="width: <%= (100-percent) %>%; background-image: url('images/percent-bar-left.gif')"
><img src="images/blank.gif" width="1" height="4" alt=""></td>
<td style="height: 8px; width: <%= (100-percent) %>%; background-image: url('images/percent-bar-left.gif')"></td>
<% } %>
</tr>
</table>
Expand Down

0 comments on commit 183ae87

Please sign in to comment.