Edited the mellanox clock rate estimation code to be more like the original