Fix MySQL replication window handling

The order of operations in ruby was causing start_time to be end_time.

This is critical to to make the mysql replication alerting work with a window defined.