Changeset

12272:fe0f5c47fda3

mod_smacks: Tweak resumption age buckets towards multiples of 60 This seems like the thing to do for time, which is usually divided into divisors divisible by 60, or multiplied by multiples of 60
author Kim Alvefur <zash@zash.se>
date Fri, 04 Feb 2022 22:11:14 +0100
parents 12271:f31bb79f51d7
children 12273:c0f49a4026f8
files plugins/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_smacks.lua	Fri Feb 04 21:20:48 2022 +0100
+++ b/plugins/mod_smacks.lua	Fri Feb 04 22:11:14 2022 +0100
@@ -38,7 +38,7 @@
 	"histogram",
 	"resumption_age", "seconds", "time the session had been hibernating at the time of a resumption",
 	{},
-	{buckets = { 0, 1, 2, 5, 10, 20, 50, 100, 200, 500 }}
+	{buckets = { 0, 1, 2, 5, 10, 30, 60, 120, 300, 600 }}
 ):with_labels();
 local sessions_expired = module:measure("sessions_expired", "counter");
 local sessions_started = module:measure("sessions_started", "counter");