Skip to content

Commit

Permalink
Fixed ram usage being incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
mesacarlos committed Nov 28, 2020
1 parent 7c4286f commit 27f769f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 9 additions & 12 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ <h5 class="modal-title" id="addServerModalLongTitle">Add a new server</h5>
<div class="form-group">
<label for="server-name" class="col-form-label" id="addServerModalSvName">Server name:</label>
<input type="text" class="form-control" id="server-name" required>
<div class="invalid-feedback" id="serverNameInvalidFeedback">
Please provide a valid servername.
</div>
</div>
<div class="form-group">
<label for="server-ip" class="col-form-label" id="addServerModalSvIp">Server IP:</label>
Expand Down Expand Up @@ -267,7 +264,7 @@ <h5 class="modal-title" id="settingsModalLongTitle">WebConsole Settings</h5>
<!-- Webpage footer -->
<footer class="footer mt-auto py-3">
<div class="container">
<span class="text-muted">WebConsole v2.0 (rev. 2) - <a href="https://github.com/mesacarlos/WebConsole">GitHub</a></span>
<span class="text-muted">WebConsole v2.0 (rev. 3) - <a href="https://github.com/mesacarlos/WebConsole">GitHub</a></span>
</div>
</footer>

Expand All @@ -277,15 +274,15 @@ <h5 class="modal-title" id="settingsModalLongTitle">WebConsole Settings</h5>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

<!-- WebConsole JS Objects -->
<script src="scripts/object/Setting.js?v=2.2"></script>
<script src="scripts/object/WSServer.js?v=2.2"></script>
<script src="scripts/object/Setting.js?v=2.0.3"></script>
<script src="scripts/object/WSServer.js?v=2.0.3"></script>

<!-- WebConsole JS Scripts -->
<script src="scripts/WebConsoleLanguage.js?v=2.2"></script>
<script src="scripts/WebConsoleConnector.js?v=2.2"></script>
<script src="scripts/WebConsoleManager.js?v=2.2"></script>
<script src="scripts/WebConsolePersistenceManager.js?v=2.2"></script>
<script src="scripts/WebConsole.js?v=2.2"></script>
<script src="scripts/WebConsoleJqueryHandler.js?v=2.2"></script>
<script src="scripts/WebConsoleLanguage.js?v=2.0.3"></script>
<script src="scripts/WebConsoleConnector.js?v=2.0.3"></script>
<script src="scripts/WebConsoleManager.js?v=2.0.3"></script>
<script src="scripts/WebConsolePersistenceManager.js?v=2.0.3"></script>
<script src="scripts/WebConsole.js?v=2.0.3"></script>
<script src="scripts/WebConsoleJqueryHandler.js?v=2.0.3"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void execute(WSServer wsServer, WebSocket conn, String params) {

long free = r.freeMemory() / 1024 / 1024;
long max = r.maxMemory() / 1024 / 1024;
long used = max - free;
long used = r.totalMemory() / 1024 / 1024 - free;

wsServer.sendToClient(conn,
new RamUsage(
Expand Down

0 comments on commit 27f769f

Please sign in to comment.