fix calculation of elapsed time
fix number of replicas in sync gateway setup