Page MenuHomeSoftware Heritage

D930.diff
No OneTemporary

D930.diff

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

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

Event Timeline