Numerical data in FTDC is stored as 64-bit integers. Flow Control locksPerOp is a floating point value, and is rounded down to 0 in FTDC when its value is < 1.
locksPerOp is expected to be less than 1 in certain batch write scenarios, so it is important to ensure that it still gets reported as nonzero in these scenarios.
Some ways to ensure this are:
- Report opsPerLock in addition to locksPerOp
- Multiply locksPerOp by some constant multiple of 10 to ensure sufficient significant figures