Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
Horizon Simulation Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redmine-legacy
Horizon Simulation Framework
Commits
9eb2d39d
Commit
9eb2d39d
authored
Apr 19, 2012
by
Georg Kunz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] fixed division by zero in corner cases
parent
542b5aa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
ide/org.omnetpp.sequencechart/bin/org.omnetpp.sequencechart_4.1.0.100611-4b63c38.jar
...rt/bin/org.omnetpp.sequencechart_4.1.0.100611-4b63c38.jar
+0
-0
ide/org.omnetpp.sequencechart/src/org/omnetpp/sequencechart/widgets/SequenceChart.java
.../src/org/omnetpp/sequencechart/widgets/SequenceChart.java
+11
-1
No files found.
ide/org.omnetpp.sequencechart/bin/org.omnetpp.sequencechart_4.1.0.100611-4b63c38.jar
View file @
9eb2d39d
No preview for this file type
ide/org.omnetpp.sequencechart/src/org/omnetpp/sequencechart/widgets/SequenceChart.java
View file @
9eb2d39d
...
...
@@ -2882,7 +2882,13 @@ public class SequenceChart
if
(
low
==
0
&&
high
==
0
)
{
return
0
;
//Legacy, if no complexities are stored
}
if
(
debug2
)
Debug
.
println
(
"complexity: "
+
complexity
+
" low: "
+
low
+
" high: "
+
high
);
if
(
debug2
)
Debug
.
println
(
"complexity: "
+
complexity
+
" low: "
+
low
+
" high: "
+
high
);
if
(
high
==
low
)
return
1
;
return
((
complexity
-
low
)*
1.0
)
/
(
high
-
low
);
}
...
...
@@ -2892,6 +2898,10 @@ public class SequenceChart
if
(
low
.
doubleValue
()
==
0
&&
high
.
doubleValue
()
==
0
)
{
return
0
;
//Legacy, if no durations are stored
}
if
(
high
.
equals
(
low
))
return
1
;
return
((
duration
.
doubleValue
()
-
low
.
doubleValue
())*
1.0
)
/
(
high
.
doubleValue
()
-
low
.
doubleValue
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment