summaryrefslogtreecommitdiffstats
path: root/source/WebAdmin.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-21 13:22:47 +0200
committermadmaxoft <github@xoft.cz>2013-10-21 13:22:47 +0200
commit5174d9cbd6acf116349a976430f1f3ae84bb7c82 (patch)
tree13699ead1cea7a45c636569a40f6ca4b9f759f87 /source/WebAdmin.cpp
parentAPIDump: Added link from cItem to the global ItemToString() et al. (diff)
downloadcuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.gz
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.bz2
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.lz
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.xz
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.zst
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.zip
Diffstat (limited to 'source/WebAdmin.cpp')
-rw-r--r--source/WebAdmin.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/source/WebAdmin.cpp b/source/WebAdmin.cpp
index 3f9bc6c98..882969746 100644
--- a/source/WebAdmin.cpp
+++ b/source/WebAdmin.cpp
@@ -270,7 +270,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
Content += "\n<p><a href='" + BaseURL + "'>Go back</a></p>";
}
- int MemUsageKiB = GetMemoryUsage();
+ int MemUsageKiB = cRoot::GetPhysicalRAMUsage();
if (MemUsageKiB > 0)
{
ReplaceString(Template, "{MEM}", Printf("%.02f", (double)MemUsageKiB / 1024));
@@ -446,16 +446,6 @@ AString cWebAdmin::GetBaseURL(const AStringVector & a_URLSplit)
-int cWebAdmin::GetMemoryUsage(void)
-{
- LOGWARNING("%s: This function is obsolete, use cRoot::GetPhysicalRAMUsage() or cRoot::GetVirtualRAMUsage() instead", __FUNCTION__);
- return cRoot::GetPhysicalRAMUsage();
-}
-
-
-
-
-
void cWebAdmin::OnRequestBegun(cHTTPConnection & a_Connection, cHTTPRequest & a_Request)
{
const AString & URL = a_Request.GetURL();