Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a726d4c4
authored
8 years ago
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error - tasklist was not copied, but referenced.
parent
34a15c3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tasksetgen.py
+2
-0
No files found.
tasksetgen.py
View file @
a726d4c4
...
@@ -21,6 +21,7 @@ import random
...
@@ -21,6 +21,7 @@ import random
import
argparse
import
argparse
import
json
import
json
import
math
import
math
import
copy
from
enum
import
Enum
from
enum
import
Enum
def
query_yes_no
(
question
,
default
=
None
):
def
query_yes_no
(
question
,
default
=
None
):
...
@@ -202,6 +203,7 @@ def main():
...
@@ -202,6 +203,7 @@ def main():
if
utility
[
0
]
<=
taskset_util
<=
utility
[
1
]:
if
utility
[
0
]
<=
taskset_util
<=
utility
[
1
]:
if
len
(
taskset
)
>=
args
.
cores
+
1
:
if
len
(
taskset
)
>=
args
.
cores
+
1
:
tasksets
.
append
(
taskset
)
tasksets
.
append
(
taskset
)
taskset
=
copy
.
deepcopy
(
taskset
)
now
=
datetime
.
datetime
.
now
()
now
=
datetime
.
datetime
.
now
()
...
...
This diff is collapsed.
Click to expand it.
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