git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
498e937
)
dispersion = 0 for single job
author
Jiří Filipovič
<fila@ics.muni.cz>
Wed, 14 Jul 2010 13:34:47 +0000
(13:34 +0000)
committer
Jiří Filipovič
<fila@ics.muni.cz>
Wed, 14 Jul 2010 13:34:47 +0000
(13:34 +0000)
org.glite.lb.server/src/stats.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/stats.c
b/org.glite.lb.server/src/stats.c
index
45b45ac
..
78b9717
100644
(file)
--- a/
org.glite.lb.server/src/stats.c
+++ b/
org.glite.lb.server/src/stats.c
@@
-789,7
+789,10
@@
static int stateDurationFromToRequest(
*duration /= match;
*dispersion /= match;
rate /= match;
- *dispersion = sqrtf(1/(rate-1) * ((*dispersion) - rate*(*duration)));
+ if (rate > 1)
+ *dispersion = sqrtf(1/(rate-1) * ((*dispersion) - rate*(*duration)));
+ else
+ *dispersion = 0;
cleanup:
return edg_wll_Error(ctx,NULL,NULL);