Fix divided by zero when the sync folder is empty (tot = 0)