Adding discovery of capacities after the fact.

This commit is contained in:
Ian Roddis
2021-12-24 10:52:06 -04:00
parent 8ca5cdafe2
commit 3c6966a9ac
2 changed files with 24 additions and 3 deletions

View File

@@ -15,6 +15,11 @@ namespace daggy::executors::task {
{
ssize_t cores;
ssize_t memoryMB;
void operator==(const Capacity &other)
{
cores = other.cores;
memoryMB = other.memoryMB;
}
};
std::string capacityToJSON(const Capacity &cap);