From 6b61df3b73f5ff26f1d85c48c2b13e4c71738946 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 21 Sep 2013 19:00:01 +0200 Subject: Implemented cWebAdmin:GetMemoryUsage() on Linux proper. Also the function now returns an int, number of KiB used, or -1 on failure. --- source/WebAdmin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/WebAdmin.h') diff --git a/source/WebAdmin.h b/source/WebAdmin.h index a62b532f1..7b710bd3b 100644 --- a/source/WebAdmin.h +++ b/source/WebAdmin.h @@ -95,7 +95,9 @@ public: static void Request_Handler(webserver::http_request* r); // tolua_begin - static AString GetMemoryUsage(void); + + /// Returns the amount of currently used memory, in KiB, or -1 if it cannot be queried + static int GetMemoryUsage(void); int GetPort() { return m_Port; } -- cgit v1.2.3