avoid division by zero on empty log file