We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6532d55 commit f1877cbCopy full SHA for f1877cb
include/ipfixprobe/ipfix-elements.hpp
@@ -51,9 +51,8 @@ namespace ipxp {
51
52
/**
53
* Conversion from microseconds to NTP fraction (resolution 1/(2^32)s, ~233 picoseconds).
54
- * Division by 1000000 would lead to wrong value when converting fraction back to microseconds, so 999999 is used.
55
*/
56
-#define NTP_USEC_TO_FRAC(usec) (uint32_t)(((uint64_t) usec << 32) / 999999)
+#define NTP_USEC_TO_FRAC(usec) (uint32_t)(((uint64_t) usec << 32) / 1000000)
57
58
59
* Create 64 bit NTP timestamp which consist of 32 bit seconds part and 32 bit fraction part.
0 commit comments