]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
fixed cut&paste error in tests/libntp/tvalops.cpp
authorJuergen Perlinger <perlinger@ntp.org>
Tue, 25 Jan 2011 21:04:11 +0000 (22:04 +0100)
committerJuergen Perlinger <perlinger@ntp.org>
Tue, 25 Jan 2011 21:04:11 +0000 (22:04 +0100)
bk: 4d3f3acb7mYnavk88lWx1I7Sqkr4Fg

tests/libntp/tvalops.cpp

index 5fb5f7a77aa055870dcdb8f1a4c0bdbc14c9e051..4ca17cd6bc49d359d81c86d42f16cdc935a103c2 100644 (file)
@@ -53,7 +53,7 @@ timevalTest::my_tsf_to_tick(
 #if SIZEOF_LONG >= 8
        return (u_int32)(((u_long)tsf * 1000000 + 0x80000000) >> 32);
 #else
-       return (u_int32)floor((double)ticks / 4294.967296 + 0.5);
+       return (u_int32)floor((double)tsf / 4294.967296 + 0.5);
 #endif
        // Beware: The result might be 10^6 due to rounding!
 }