Mercurial > prosody-hg
comparison core/statsmanager.lua @ 6910:82765a4ec799
statsmanager: Add get() method
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 18 Oct 2015 21:35:21 +0100 |
| parents | 71b5de1d830b |
| children | 1c8b63fe6472 |
comparison
equal
deleted
inserted
replaced
| 6907:a24c9c1edd67 | 6910:82765a4ec799 |
|---|---|
| 64 measure = measure; | 64 measure = measure; |
| 65 collect = collect; | 65 collect = collect; |
| 66 get_stats = function () | 66 get_stats = function () |
| 67 return latest_stats, changed_stats, stats_extra; | 67 return latest_stats, changed_stats, stats_extra; |
| 68 end; | 68 end; |
| 69 get = function (name) | |
| 70 return latest_stats[name], stats_extra[name]; | |
| 71 end; | |
| 69 }; | 72 }; |
