aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-10-18 21:35:21 +0100
committerMatthew Wild <mwild1@gmail.com>2015-10-18 21:35:21 +0100
commitd8ae71e6947e291945d6ff98759310130f15546f (patch)
tree592fea25cfcfa3f0310040e49c6cbc0300fa4bee /core
parent275c4489cb615a8f0deafe128f51b95e960f7253 (diff)
downloadprosody-d8ae71e6947e291945d6ff98759310130f15546f.tar.gz
prosody-d8ae71e6947e291945d6ff98759310130f15546f.zip
statsmanager: Add get() method
Diffstat (limited to 'core')
-rw-r--r--core/statsmanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index d6cbd2bc..7771a2b3 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -66,4 +66,7 @@ return {
get_stats = function ()
return latest_stats, changed_stats, stats_extra;
end;
+ get = function (name)
+ return latest_stats[name], stats_extra[name];
+ end;
};