Fix update time bug 

Period is expressed in seconds, not milliseconds