Mercurial > prosody-modules
comparison mod_statistics/top.lua @ 1084:9612cea92503
mod_statistics: top: Clean up sessions after 60s of inactivity
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 15 Jun 2013 22:27:42 +0100 |
parents | 6685ebe6f8cf |
children | 7dbde05b48a9 |
comparison
equal
deleted
inserted
replaced
1083:6685ebe6f8cf | 1084:9612cea92503 |
---|---|
4 local it = require "util.iterators"; | 4 local it = require "util.iterators"; |
5 local curses = require "curses"; | 5 local curses = require "curses"; |
6 local stats = require "stats".stats; | 6 local stats = require "stats".stats; |
7 local time = require "socket".gettime; | 7 local time = require "socket".gettime; |
8 | 8 |
9 local sessions_idle_after = 10; | 9 local sessions_idle_after = 60; |
10 local stanza_names = {"message", "presence", "iq"}; | 10 local stanza_names = {"message", "presence", "iq"}; |
11 | 11 |
12 local top = {}; | 12 local top = {}; |
13 top.__index = top; | 13 top.__index = top; |
14 | 14 |