HomeClusterLabs Projects

Refactor: scheduler: best practices when summing resources' utilization

Description

Refactor: scheduler: best practices when summing resources' utilization

Rename sum_unallocated_utilization() to sum_resource_utilization(), add a
doxygen block, rename arguments and variables for clarity, and tweak
formatting.

This also avoids copying a list by moving a small part of the function to its
sole caller.

Details

Provenance
kgaillotAuthored on Dec 20 2021, 7:35 PM
Parents
rP99f4b271d402: Feature: scheduler: implement utilization for bundles
Branches
Unknown
Tags
Unknown

Event Timeline