fixed the cast of m_txnsPerMillisecond to int
merged with upstream