Change the update interval based on the previous history