1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-18 20:29:02 +00:00

fixed a major os detection bug with computation of the ISR test result. Am in the process of updating the DB

This commit is contained in:
fyodor
2006-08-29 07:02:35 +00:00
parent bd247dab45
commit 0eb6303487
2 changed files with 8 additions and 8 deletions

View File

@@ -1697,14 +1697,14 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) {
} else {
/* First calculate the average counter rate */
for(i=0; i < hss->si.responses - 1; i++) {
for(i=0; i < hss->si.responses - 1; i++) {
seq_rate += seq_diffs[i] / (TIMEVAL_MSEC_SUBTRACT(hss->seq_send_times[i+1], hss->seq_send_times[i]) / 1000.0);
}
seq_rate /= hss->si.responses - 1;
/* Finally we take a binary logarithm, multiply by 8, and round
to get the final result */
seq_rate = log(seq_rate) / log(2);
seq_rate = (unsigned int) seq_rate * 8 + 0.5;
seq_rate = (unsigned int) (seq_rate * 8 + 0.5);
/* Now calculate the predictability index */
for(i=0; i < hss->si.responses - 1; i++)