From 550b130d913247c7710482fa3ec4f13f6a380a42 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Fri, 1 May 2015 11:13:43 +0300 Subject: [PATCH] Schemarouter shortest session statistic now only updates session with a length of more than zero seconds. --- server/modules/routing/schemarouter/schemarouter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/schemarouter/schemarouter.c b/server/modules/routing/schemarouter/schemarouter.c index f43a86261..2dfe7ddfb 100644 --- a/server/modules/routing/schemarouter/schemarouter.c +++ b/server/modules/routing/schemarouter/schemarouter.c @@ -1186,7 +1186,7 @@ static void closeSession( double ses_time = difftime(time(NULL),router_cli_ses->rses_client_dcb->session->stats.connect); if(inst->stats.ses_longest < ses_time) inst->stats.ses_longest = ses_time; - if(inst->stats.ses_shortest > ses_time) + if(inst->stats.ses_shortest > ses_time && inst->stats.ses_shortest > 0) inst->stats.ses_shortest = ses_time; inst->stats.ses_average =