projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 0.10->trunk
[prosody.git]
/
util
/
statistics.lua
diff --git
a/util/statistics.lua
b/util/statistics.lua
index a05a1f9185d508ebf2b091e2b6e87b66b1fba849..263550265483516f4dddabdf523dffd60bed4cc8 100644
(file)
--- a/
util/statistics.lua
+++ b/
util/statistics.lua
@@
-88,7
+88,7
@@
local function new_registry(config)
return function (value)
n_actual_events = n_actual_events + 1;
return function (value)
n_actual_events = n_actual_events + 1;
- if n_actual_events%duration_sample_interval
> 0
then
+ if n_actual_events%duration_sample_interval
== 1
then
last_event = (last_event%duration_max_samples) + 1;
events[last_event] = value;
end
last_event = (last_event%duration_max_samples) + 1;
events[last_event] = value;
end
@@
-113,7
+113,7
@@
local function new_registry(config)
return function ()
n_actual_events = n_actual_events + 1;
return function ()
n_actual_events = n_actual_events + 1;
- if n_actual_events%duration_sample_interval
> 0
then
+ if n_actual_events%duration_sample_interval
~= 1
then
return nop_function;
end
return nop_function;
end