Skip to content

Commit

Permalink
Fixed Metapool comparision (fixes #106)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmstr committed Dec 22, 2023
1 parent 2f6132e commit 78a7036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/uds/core/managers/user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,10 +1003,10 @@ def getMeta(
# Remove "full" pools (100%) from result and pools in maintenance mode, not ready pools, etc...
sortedPools = sorted(sortPools, key=lambda x: x[0])
pools: typing.List[ServicePool] = [
p[1] for p in sortedPools if p[1].usage() < 100 and p[1].isUsable()
p[1] for p in sortedPools if p[1].usage()[0] < 100 and p[1].isUsable()
]
poolsFull: typing.List[ServicePool] = [
p[1] for p in sortedPools if p[1].usage() == 100 and p[1].isUsable()
p[1] for p in sortedPools if p[1].usage()[0] == 100 and p[1].isUsable()
]

logger.debug('Pools: %s/%s', pools, poolsFull)
Expand Down

0 comments on commit 78a7036

Please sign in to comment.