Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9697076
D930.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
648 B
Subscribers
None
D930.diff
View Options
diff --git a/swh/scheduler/__init__.py b/swh/scheduler/__init__.py
--- a/swh/scheduler/__init__.py
+++ b/swh/scheduler/__init__.py
@@ -16,13 +16,14 @@
num_tasks (int):
Returns:
- tuple number of tasks without priority, number of tasks with
- priority
+ tuple number of tasks without priority (int), number of tasks with
+ priority (int)
"""
if not num_tasks:
return None, None
- return (1 - PRIORITY_SLOT) * num_tasks, PRIORITY_SLOT * num_tasks
+ return (int((1 - PRIORITY_SLOT) * num_tasks),
+ int(PRIORITY_SLOT * num_tasks))
def get_scheduler(cls, args={}):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 10:41 PM (1 w, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220782
Attached To
D930: Fix swh.scheduler.compute_nb_tasks_from function to return integers
Event Timeline
Log In to Comment