Fix wrong order of parameters

Browser was sending hours (e.g. 1, 24, 168) as count instead of time.