Fixed bug with not emptying hourly log files when sending data to server.