code: private static double floorTime(double now, double period) {
      	double precision = 1000d;
      	long t = (long) (now * precision);
      	long d = (long) (period * precision);
      	return (t - (t % d)) / precision;
  	}
docs: TODO Change this config key