From 9d42feb337ae214aa4f3af6a52a020f3542ca93b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Fri, 23 Jul 2010 06:33:58 +0000 Subject: [PATCH] fixed dispersion index computation --- org.glite.lb.server/src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/stats.c b/org.glite.lb.server/src/stats.c index c96d340..7cf1bbe 100644 --- a/org.glite.lb.server/src/stats.c +++ b/org.glite.lb.server/src/stats.c @@ -850,7 +850,7 @@ static int stateDurationFromToRequest( *dispersion /= match; rate /= match; if (rate > 1) - *dispersion = sqrtf(1/(rate-1) * ((*dispersion) - rate*(*duration))); + *dispersion = sqrtf(1/(rate-1) * ((*dispersion) - rate*((*duration)*(*duration)))); else *dispersion = 0; } -- 1.8.2.3