projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01496f9
)
bug
author
bdemsky
<bdemsky>
Wed, 30 Jun 2010 01:30:53 +0000
(
01:30
+0000)
committer
bdemsky
<bdemsky>
Wed, 30 Jun 2010 01:30:53 +0000
(
01:30
+0000)
Robust/TransSim/FlexScheduler.java
patch
|
blob
|
history
diff --git
a/Robust/TransSim/FlexScheduler.java
b/Robust/TransSim/FlexScheduler.java
index 2a050305fe132ff5257cdff6fa52ea47bdc30654..1ac76881042f2bd7bf0e6c4c4df2887a9182f6a1 100644
(file)
--- a/
Robust/TransSim/FlexScheduler.java
+++ b/
Robust/TransSim/FlexScheduler.java
@@
-181,9
+181,7
@@
public class FlexScheduler extends Thread {
int eIndex=e.getEvent();
long eTime=e.getTime();
long timeleft=eTime-currtime;
- long totaltime=0;
- for(int i=0;i<=eIndex;i++)
- totaltime+=trans.getTime(i);
+ long totaltime=trans.getTime(eIndex);
totaltime-=timeleft;//subtract off time to the next event
abortedcycles+=totaltime;
}