Bug in the function to get the total page generation time