summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-20 09:41:27 +0200
committerMattes D <github@xoft.cz>2015-04-20 09:41:27 +0200
commitbe4ac22b5273844c47f3a2c563bb0123c3f25b58 (patch)
tree600986720c5d5015b9bfd7ec40defb9ce7255177
parentFixed a bad recipe. (diff)
downloadcuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.tar
cuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.tar.gz
cuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.tar.bz2
cuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.tar.lz
cuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.tar.xz
cuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.tar.zst
cuberite-be4ac22b5273844c47f3a2c563bb0123c3f25b58.zip
Diffstat (limited to '')
-rw-r--r--MCServer/webadmin/template.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/MCServer/webadmin/template.lua b/MCServer/webadmin/template.lua
index 9d0f860db..2e89836af 100644
--- a/MCServer/webadmin/template.lua
+++ b/MCServer/webadmin/template.lua
@@ -26,9 +26,6 @@ function GetDefaultPage()
local SubTitle = "Current Game"
local Content = ""
- Content = Content .. "<h4>Server Name:</h4>"
- Content = Content .. "<p>" .. cRoot:Get():GetServer():GetServerID() .. "</p>"
-
Content = Content .. "<h4>Plugins:</h4><ul>"
PM:ForEachPlugin(
function (a_CBPlugin)
@@ -104,9 +101,8 @@ function ShowPage(WebAdmin, TemplateRequest)
<div class="upper">
<div class="wrapper">
<ul class="menu top_links">
- <li><a>Server Name: <strong>]] .. cRoot:Get():GetServer():GetServerID() .. [[</strong></a></li>
<li><a>Players online: <strong>]] .. NumPlayers .. [[</strong></a></li>
- <li><a>Memory: <strong>]] .. MemoryUsageKiB / 1024 .. [[MB</strong></a></li>
+ <li><a>Memory: <strong>]] .. string.format("%.2f", MemoryUsageKiB / 1024) .. [[MB</strong></a></li>
<li><a>Chunks: <strong>]] .. NumChunks .. [[</strong></a></li>
</ul>
<div class="welcome"><strong>Welcome back, ]] .. TemplateRequest.Request.Username .. [[</strong>&nbsp;&nbsp;&nbsp;<a href=".././"><img src="/log_out.png" style="vertical-align:bottom;"> Log Out</a></div>