Commit 0ec5d92b authored by Håkan Wennlöf's avatar Håkan Wennlöf
Browse files

Slight alteration to progress percentage calculation, to avoid integer overflow.

parent 955e960a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ int main(int argc, char** argv) {

            mesh_points_done += divisions.z();
            LOG_PROGRESS(INFO, "m") << "Interpolating new mesh: " << mesh_points_done << " of " << mesh_points_total << ", "
                                    << (100 * mesh_points_done / mesh_points_total) << "%";
                                    << (mesh_points_done / (mesh_points_total / 100)) << "%";

            return new_mesh;
        };