Software /
code /
prosody-modules
Comparison
mod_statistics/top.lua @ 1078:5f398922f0a3
mod_statistics/top.lua: Keep sessions displayed for 10s (instead of 3s)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Jun 2013 21:01:28 +0100 |
parent | 1073:fe57e9332e52 |
child | 1079:87a091f88a1d |
comparison
equal
deleted
inserted
replaced
1077:b73d44afdafa | 1078:5f398922f0a3 |
---|---|
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 = 3; | 9 local sessions_idle_after = 10; |
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 |