fixed a bug that would not calculate the daytime or nightime hours correctly for the change in refresh rate.