Commit 95da1bd2 authored by Håvard Moås's avatar Håvard Moås
Browse files

Update IPFIXLIB to make REAL standard deviations; had forgotten to square root...

Update IPFIXLIB to make REAL standard deviations; had forgotten to square root them, havard.mork@gmail.com

git-svn-id: file:///home/svn/mapi/branches/haavardm-mapi@57 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent cbf580cf
......@@ -1397,6 +1397,8 @@ static void handleTemplate(np_ctxt_t *npctxt, V9TemplateId *theTemplate,
else
f = (float)(theFlow->dst2src_expval_pktdist_x2/(u_int64_t)theFlow->pktRcvd -
theFlow->dst2src_expval_pktdist_x/(u_int64_t)theFlow->pktRcvd);
f = sqrtf(f);
copyFloat(f, outBuffer,outBufferBegin, outBufferMax);
}
break;
......@@ -1419,6 +1421,7 @@ static void handleTemplate(np_ctxt_t *npctxt, V9TemplateId *theTemplate,
else
f = (float)(theFlow->dst2src_expval_pktlength_x2/(u_int64_t)theFlow->pktRcvd -
theFlow->dst2src_expval_pktlength_x/(u_int64_t)theFlow->pktRcvd);
f = sqrtf(f);
copyFloat(f, outBuffer,outBufferBegin,outBufferMax);
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment