| 89 | } |
| 90 | |
| 91 | int getNumofNonExcludedMachines(StatusObjectReader statusObjCluster) { |
| 92 | StatusObjectReader machineMap; |
| 93 | int numOfNonExcludedMachines = 0; |
| 94 | if (statusObjCluster.get("machines", machineMap)) { |
| 95 | for (auto mach : machineMap.obj()) { |
| 96 | StatusObjectReader machine(mach.second); |
| 97 | if (machine.has("excluded") && !machine.last().get_bool()) |
| 98 | numOfNonExcludedMachines++; |
| 99 | } |
| 100 | } |
| 101 | return numOfNonExcludedMachines; |
| 102 | } |
| 103 | |
| 104 | std::string getDateInfoString(StatusObjectReader statusObj, std::string key) { |
| 105 | time_t curTime; |
no test coverage detected