Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit fa9ea18c authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fixing error: avoid negative progress

parent 083a1015
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public double Progress
{
get { return AbsTime.Value() / Data.Entries.Last().Time.Value(); }
get { return Math.Max(0, AbsTime.Value() / Data.Entries.Last().Time.Value()); }
}
#endregion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment