Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
8b3643cf
Commit
8b3643cf
authored
Oct 28, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not allow breaks of 0 time
parent
3a0823d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dream/simulation/ShiftScheduler.py
dream/simulation/ShiftScheduler.py
+1
-1
No files found.
dream/simulation/ShiftScheduler.py
View file @
8b3643cf
...
@@ -128,7 +128,7 @@ class ShiftScheduler(ObjectInterruption):
...
@@ -128,7 +128,7 @@ class ShiftScheduler(ObjectInterruption):
# sometimes the time to end the last process may overcome the time to restart theshift
# sometimes the time to end the last process may overcome the time to restart theshift
# so off-shift should not happen at such a case
# so off-shift should not happen at such a case
if
len
(
self
.
remainingShiftPattern
)
>
1
:
if
len
(
self
.
remainingShiftPattern
)
>
1
:
if
self
.
env
.
now
>
self
.
remainingShiftPattern
[
1
][
0
]:
if
self
.
env
.
now
>
=
self
.
remainingShiftPattern
[
1
][
0
]:
self
.
remainingShiftPattern
.
pop
(
0
)
self
.
remainingShiftPattern
.
pop
(
0
)
# if there is no more shift data break the loop
# if there is no more shift data break the loop
if
len
(
self
.
remainingShiftPattern
)
==
0
:
if
len
(
self
.
remainingShiftPattern
)
==
0
:
...
...
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