From: Juergen Perlinger Date: Tue, 25 Jan 2011 21:04:11 +0000 (+0100) Subject: fixed cut&paste error in tests/libntp/tvalops.cpp X-Git-Tag: NTP_4_2_7P125~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10917e959591ee23ebc1bd44f46b168bfa90df9e;p=thirdparty%2Fntp.git fixed cut&paste error in tests/libntp/tvalops.cpp bk: 4d3f3acb7mYnavk88lWx1I7Sqkr4Fg --- diff --git a/tests/libntp/tvalops.cpp b/tests/libntp/tvalops.cpp index 5fb5f7a77..4ca17cd6b 100644 --- a/tests/libntp/tvalops.cpp +++ b/tests/libntp/tvalops.cpp @@ -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! }