]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 200] Apparently, variance data is stored squared, so we want to SQRT() it when...
authorHarlan Stenn <stenn@ntp.org>
Sat, 29 Nov 2003 08:28:17 +0000 (03:28 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 29 Nov 2003 08:28:17 +0000 (03:28 -0500)
bk: 3fc858a1DdOw8MYxm1EyXuLctR-lcA

ntpd/ntp_request.c

index eacba283f492dba1814517cee12fc2f8cec6f0dc..7863e5a7395742d57fc00890c0f038a2de1e983a 100644 (file)
@@ -776,7 +776,7 @@ peer_list_sum(
                                ips->delay = HTONS_FP(DTOFP(pp->delay));
                                DTOLFP(pp->offset, &ltmp);
                                HTONL_FP(&ltmp, &ips->offset);
-                               ips->dispersion = HTONS_FP(DTOUFP(pp->disp));
+                               ips->dispersion = HTONS_FP(DTOUFP(SQRT(pp->disp)));
                        }       
                        pp = pp->next; 
                        ips = (struct info_peer_summary *)more_pkt();